
/dmg-files-5a70925bba6177003785cc17-64d5a90ff22744d6a18e67005953d68b.png)
For example:Īnd although the Finder will not empty the image from the trash while it is mounted, you can use the command line to remove the image file altogether after it's mounted, bypassing the trash altogether:


You can then install and unmount (or reboot) like normal, and forget about the image file altogether, since it's already trashed.Īs an alternative, you can mount an image from the trash from the command line. So after you open an image to mount it, you can immediately trash it. I won't go into the technical details of why this is true, but the system has no problem keeping track of the actual image's location. While you can't mount an image from the trash using the Finder, you can trash an image once it is already mounted. I'm not sure this qualifies as a hint, but I find the following trick effective to avoid the problem: I often find my downloads directory filling with disk images I've downloaded off the internet, installed, and forgotten to delete after unmounting (and possibly rebooting).
