How to uninstall apps on your Mac completely, with no leftovers
Updated
In short: Dragging an app from the Applications folder to the Trash removes only the app itself. Its settings, caches, containers, logs and sometimes background services stay behind in the Library folders. To remove an app completely, quit it, use its uninstaller if it has one, and then remove the leftovers that carry its bundle ID or its name.
1. Quit and uninstall the app
Quit the app, in the menu bar too if it has an icon there. Then open the Applications folder in the Finder. If the app sits in its own folder, look for an uninstaller there and use it; it often removes background services as well that you would otherwise have to hunt down by hand. If there is none, drag the app to the Trash. Apps that are part of macOS, such as Mail, Music or Notes, cannot be removed.
2. Find out the app's bundle ID
Most leftovers are not named after the app but after its bundle ID, such as com.company.AppName. While the app is still installed, Terminal shows it with osascript -e 'id of app "AppName"'. If it is already deleted, search the folders below for the developer's name.
3. Where the leftovers are
In the Finder, open the Library with Go > Go to Folder and ~/Library. Typical places, each with the bundle ID or the app's name:
~/Library/Application Support: the app's data, often the largest leftover.~/Library/Cachesand~/Library/Logs: caches and logs.~/Library/Containers: all data of App Store apps and other sandboxed apps.~/Library/Preferences: settings as a.plistfile.~/Library/Saved Application State,HTTPStorages,WebKitandCookies: window states and web data of the app.~/Library/LaunchAgents: services that start when you log in./Library/LaunchAgents,/Library/LaunchDaemonsand/Library/Application Support: services and data for all users; macOS asks for your password to remove them.- Hidden folders in your home folder, such as
~/.avidemux6or~/.config/qBittorrent: some programs keep their data there instead of in the Library. In the Finder, Shift-Command-Period shows such folders.
4. Careful with shared folders
Some leftovers belong to more than one app. Folders in ~/Library/Group Containers and folders named after a developer are often shared by several apps from the same company. Only remove them when no other app from that developer is installed. And always move leftovers to the Trash first: if something is missing afterwards, "Put Back" restores it.
5. Check login items and background services
In System Settings under General, the login items show what starts when you log in and which apps may run in the background. If an entry of the deleted app is still listed there, a launch file usually remains in one of the LaunchAgents or LaunchDaemons folders from step 3.
6. Find leftovers of apps deleted long ago
If you used to just drag apps to the Trash, their leftovers are still in your Library today. Sort ~/Library/Application Support and ~/Library/Containers by size and look for names of apps you no longer have. Before removing anything, make sure the app really is no longer installed; many folders belong to macOS itself and have names starting with com.apple..
Faster with SpaceBroom
SpaceBroom's Uninstaller shows each app's settings, caches and launch files with path and size and moves them to the Trash. In the version from this website it also finds the app's containers, offers to quit the running app first, removes the app's login item along with it and finds leftovers in /Library too: those are not preselected and are deleted only after you enter your administrator password, and then for good instead of going to the Trash. That version can also search for hidden folders in your home folder: this search is experimental and off until you turn it on, it preselects nothing, and you check every find yourself, because such a folder can also belong to another program. To keep the app and only make it start as if new, switch to "Reset" at the top or choose "Reset ..." in the app's context menu: only the chosen settings and data go, the app, its login item and its Dock icon stay. What several apps share is marked as shared and not preselected. The same view also finds the leftovers of apps deleted long ago. More ways to free up space are in the guide How to free up storage space on your Mac: 9 ways that work.
More guides
- How to free up storage space on your Mac: 9 ways that workMac storage full? See what takes up space and free it up: the Trash, Downloads, large files, unused apps, old device backups and more.
- System Data on your Mac: what it is and how to reduce itSystem Data taking up many gigabytes? What the category holds, what macOS cleans up by itself and what you can safely remove.
- How to clean up DerivedData, archives and simulators on your MacXcode DerivedData, archives, device symbols and simulators: where they are, what you can safely delete and what Apple says to keep.
- How to clean up node_modules and package caches on your Macnode_modules, the caches of npm, Yarn, pnpm and pip, Homebrew and Docker: where they are, how big they get and how to clean them up safely.
- Is it safe to delete caches on your Mac?Is it safe to clear caches on a Mac? What caches are, where they are stored, what macOS clears by itself and which folders to leave alone.
- How to find large files on your MacVideos, downloads and old archives often take the most space. How to find large files with macOS Storage settings, the Finder or Terminal.
- How to find and remove duplicate files and photos on your MacDuplicate photos in your library, copies in Downloads and Documents: how to spot duplicates reliably, which copy to keep and where deleting frees nothing.