Sub topic 17
Removing apps you no longer need
This chapter assumes you can use Finder and System Settings, and that you know how an app bundle (a .app folder) differs from an installer package (.pkg). The command-line sections need Terminal. Everything in them is read-only except the steps marked as removals.
Why removal matters for safety
Every installed app is code that can run, ask for permissions, and receive updates. An app you no longer use still has all of that. It can keep a helper running in the background, hold a camera or Full Disk Access grant, or fall out of date and become a weak point. Removing unused software shrinks what you have to trust and keep patched.
How you remove an app depends on how it was installed. The install method decides how many files were scattered across your Mac.
Step 1: Quit the app and check what is running
Quit the app first. If it left a menu bar icon or a background helper, quit that as well. Open Activity Monitor and search for the app's name. A process that survives quitting is a hint that the app installed a login item or a launch agent, which you will remove in a later step.
Step 2: Remove the app bundle
A drag-and-drop app, such as one installed from a disk image, is a single bundle in /Applications or ~/Applications. To remove it, drag it to the Trash, or select it in Finder and press Command-Delete. Then empty the Trash.
Apps from the Mac App Store can be removed the same way. Each app is also a bundle in /Applications. Some macOS versions also let you delete App Store apps from the app launcher by holding the Option key and clicking the delete badge. The result is the same.
Two limits apply:
- macOS refuses to trash apps that are currently running and system apps protected by the signed system volume.
- Deleting an app does not cancel a subscription. If the app billed you through Apple, cancel in System Settings, under your Apple Account, in Media & Purchases, then Subscriptions. For subscriptions billed by the developer's website, cancel on that website.
Step 3: Find leftover files
Trashing the bundle leaves behind files the app created while running. These are usually small. They are harmless unless they hold personal data, or unless you plan to reinstall and want a clean start.
The usual locations are in your user Library folder:
| Location | What it holds |
|---|---|
| `~/Library/Application Support/<name>` | Databases, caches of documents, plug-ins |
| `~/Library/Preferences/<bundle id>.plist` | Settings |
| `~/Library/Caches/<bundle id>` | Temporary data, safe to delete |
| `~/Library/Containers/<bundle id>` | All data of a sandboxed app, including App Store apps |
| `~/Library/Group Containers/` | Data shared between an app and its extensions |
| `~/Library/LaunchAgents` | Background jobs that start when you log in |
A bundle identifier (bundle id) is the app's unique name in reverse-domain form, such as com.example.Example. Read it from the app itself:
mdls -name kMDItemCFBundleIdentifier /Applications/Example.appRun that before you trash the app, because the bundle is gone afterward. Then search your user Library for the app name or id. The -maxdepth limit keeps the search fast and focused:
find ~/Library -maxdepth 3 \( -iname "*example*" -o -iname "*com.example.Example*" \) 2>/dev/nullRead the list before you delete anything. A pattern like *example* can match files that belong to other software, so remove only paths you can tie to the app.
rm -r "$HOME/Library/Caches/com.example.Example"The rm command skips the Trash. You cannot undo it, so run rm only on paths you have inspected. If you are unsure, move the item to the Trash in Finder instead.
Step 4: Remove login items and background helpers
Open System Settings, then General, then Login Items & Extensions. Remove the app from "Open at Login" and switch off its entries under "Allow in the Background". Removal of the bundle often leaves these entries greyed out or orphaned.
List launch agents and daemons yourself to find ones that belong to the app:
ls -l ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons 2>/dev/nullA file named after the developer, such as com.example.helper.plist, is a candidate. Unload it before deleting it, so the job stops now and not only after the next restart:
launchctl bootout "gui/$(id -u)" ~/Library/LaunchAgents/com.example.helper.plist
rm ~/Library/LaunchAgents/com.example.helper.plistFiles in /Library/LaunchDaemons run as root, so unloading them requires sudo and a system domain target. Do not touch a daemon unless you are certain which software installed it.
Step 5: Reset privacy permissions
A permission grant is stored separately from the app. Removing the app does not always clear it. If you reinstall software with the same bundle id, the old grants may apply again. To clear them, use tccutil with the bundle id:
tccutil reset All com.example.ExampleTo clear one category, name it, for example Camera, Microphone or ScreenCapture:
tccutil reset Camera com.example.ExampleYou can also review the lists in System Settings under Privacy & Security and remove the app by selecting it and clicking the minus button.
Removing apps installed from a package
An installer package can place files anywhere, including /Library, /usr/local and system folders. Dragging an app to the Trash may leave much of the install behind. Check first whether the vendor provides an uninstaller, often inside the original disk image or in the app's Help menu. Use it, because the vendor knows the full file list.
Without a vendor uninstaller, macOS keeps a receipt for each package. Receipts let you see what the installer wrote:
pkgutil --pkgs | grep -i example
pkgutil --pkg-info com.example.Example.pkg
pkgutil --files com.example.Example.pkgThe --files output lists paths relative to the install volume. Review it before you remove anything. Delete only paths you can identify as the app's own. The --forget command removes the receipt but does not delete any installed files:
sudo pkgutil --forget com.example.Example.pkgForget the receipt only after you have removed the files, since the receipt is your record of what was installed.
Removing Homebrew casks
If you installed the app with Homebrew, use Homebrew to remove it. This applies the cask's own removal rules and keeps its records correct:
brew uninstall --cask example
brew uninstall --zap --cask exampleThe second form also deletes the cleanup paths the cask lists. Run brew info --cask example to see what --zap will delete before you use it.
A removal checklist
Common errors
- "The item can't be moved to the Trash because it's open." The app or a helper is still running. Quit it in Activity Monitor and try again.
- The app comes back after restart. A launch agent or login item restarted it. Remove the agent as in Step 4.
- A permission appears for an app you deleted. The grant outlived the bundle. Use
tccutil reset. - You deleted shared data. Files in
Group Containersmay be shared by several apps from one developer. Delete them only if you have removed all of that developer's apps.
Exercise
You installed an app from a .pkg file and then dragged it to the Trash. A background helper still runs after restart, and the app still appears in the camera permission list. Name the commands or places you would use to find the helper, stop it, and clear the permission.
Show answer
List the launch agents and daemons with ls -l ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons and identify the helper's plist. Stop it with launchctl bootout "gui/$(id -u)" <path to plist>, then delete the plist. You can also use pkgutil --files <package id> to see what the installer placed. Clear the permission with tccutil reset Camera <bundle id>, or remove the app under Privacy & Security, Camera in System Settings.