Remove a hard disk, DVD, or floppy image from the media registry.
The VBoxManage closemedium command removes a hard disk, DVD, or floppy image from the list of known media used by Oracle VM VirtualBox. The image is then unavailable for selection in the Virtual Media Manager.
To use this command, the image must not be attached to any VMs.
Optionally, you can request that the image be deleted.
Specifies the type of medium. Valid values are
disk (hard drive),
dvd, or floppy.
uuid|filenameSpecifies the Universally Unique Identifier (UUID) or absolute path name of the medium or image.
--delete
Deletes the image file.