Sub topic 8
Deleting safely: backups and what to leave alone
This chapter assumes you can use Finder and System Settings, know where your home folder and its Library folder are, and can run simple Terminal commands. The earlier chapters showed you how to find large files. Here you decide what is safe to remove.
Why deletion needs a routine
Deleting on a Mac can be permanent. Once you empty the Trash, the files are gone unless a backup holds a copy. Some files also look like clutter but are not. Removing them can break an app, lose a document that exists nowhere else, or stop your Mac from starting. A short routine handles both risks.
Step 1: Confirm you have a backup
Before any large cleanup, check that a recent backup exists. Open System Settings > General > Time Machine and read the date of the latest backup. You can also ask Terminal:
tmutil latestbackupThe command prints the path of the newest backup. If it prints an error or nothing, your backup disk may be disconnected, or Terminal may lack Full Disk Access. Fix that before you delete anything you cannot replace.
A cloud copy, such as iCloud Drive, is not a backup. If you delete a file there, the deletion syncs to your other devices. Time Machine or another separate copy is what protects you.
Step 2: Stage files instead of deleting them
Moving a file to the Trash is reversible. Running rm in Terminal is not, because it skips the Trash. For large cleanups, collect candidates in one folder and wait a few days:
mkdir -p ~/Desktop/to-review
mv ~/Downloads/old-installer.dmg ~/Desktop/to-review/If nothing breaks after a few days, drag the folder to the Trash and empty it. Staging does not free space until you empty the Trash, because the files stay on the same volume.
Step 3: Know what to leave alone
Use this table to decide.
| Location | What it holds | Guidance |
|---|---|---|
| `/System`, `/usr`, `/bin`, `/sbin` | macOS itself | Never delete. macOS protects most of it. |
| `/Library` and `/private` | System-wide settings, logs, and support files | Leave alone unless a vendor's instructions say otherwise. |
| `~/Library/Application Support` | App data such as databases, saved sessions, and licenses | Leave alone. Remove only through the app or its uninstaller. |
| `~/Library/Preferences` | App settings | Leave alone. Deleting resets an app and can lose settings. |
| `~/Library/Mail`, `~/Library/Messages` | Your mail and message history | Manage inside the app. |
| `*.photoslibrary` and similar library packages | Whole libraries stored as one item | Never open and delete inside. Use the app. |
| `~/Downloads`, `~/Movies`, old disk images | Files you chose to keep | Usually safe to remove after you review them. |
| `~/Library/Caches` | Rebuildable temporary data | Generally safe. The caches chapter covers this. |
Step 4: Check before you remove
Look at what a folder contains and how big it is before you delete it:
ls -lah ~/Desktop/to-review
du -sh ~/Desktop/to-reviewIf you do not recognize an item, search for its name before removing it. An unfamiliar folder inside ~/Library often belongs to an app you still use.
The routine at a glance
Common mistakes
- Deleting from
~/Librarybecause the folder looks large, without knowing which app owns it. - Treating "synced to iCloud" as "backed up".
- Emptying the Trash right after a large move, which removes your last chance to undo it.
- Using
rm -rfwith a wildcard such as~/Library/*.
Exercise
You find a 40 GB folder named "Application Support/Steam" inside your home Library. You want the space back. What should you do first, and why shouldn't you simply delete the folder?
Show answer
Confirm a recent backup exists, for example with tmutil latestbackup. Do not delete the folder directly, because Application Support holds app data such as game installs and saves that may not be rebuildable. Instead, remove content through the app, such as uninstalling games in Steam. If you must remove files by hand, move them to a review folder first so you can undo it.