Can you delete .dmg files after installing an app?
Yes. A .dmg file is a disk image, the box the app was delivered in. Once the app is in your Applications folder and opens, the box can go.
What a .dmg file is
A disk image behaves like a small virtual drive. Double-clicking it mounts that drive on your desktop and in the Finder sidebar, usually showing the app and a shortcut to the Applications folder. Dragging the app across copies it onto your Mac. After that, the app in Applications is complete and does not depend on the disk image.
Delete it in three steps
- Check the app opens from the Applications folder or Launchpad, not from the mounted disk image.
- Eject the mounted image. Click the eject symbol next to its name in the Finder sidebar, or drag its desktop icon to the Trash.
- Move the .dmg file to the Trash. It is usually in your Downloads folder.
If macOS says the image is in use, you are still running the app from inside it. Quit the app, eject, then open the copy in Applications.
What about .pkg files?
A .pkg is an installer that copies files into place when you run it. Once the installer has finished, the .pkg is no longer needed either.
When to keep one
- The app is no longer offered for download, or you need that exact older version.
- You install the same app on Macs that have a slow or metered connection.
- You paid for a download you cannot fetch again.
In those cases, move the file out of Downloads to somewhere you will find it, such as an Installers folder on an external disk.
Find every installer on your Mac
In Finder, press ⌘F, set Kind to Other and type Disk Image. In Terminal:
find ~/Downloads ~/Desktop -name "*.dmg" -o -name "*.pkg"
Gander lists them for you on its Clean Up page under Old installers: every .dmg and .pkg that has been sitting for more than two weeks, with the total space they take. You tick what should go, and it moves to the Trash with an Undo button. Typing installers older than 1 month in the search box does the same job by hand.
FAQ
Does deleting the .dmg uninstall the app?
No. The app in your Applications folder is a separate copy. Deleting the disk image does not touch it.
Why is the app still on my desktop after installing?
That icon is the mounted disk image, not the app. Eject it from the Finder sidebar and it will disappear.
How much space do old installers take?
Often more than you would guess. Individual installers range from a few megabytes to several gigabytes, and they accumulate because nothing removes them for you.