Safe files to clean up on Mac, Windows and Linux (and what to leave alone)

By the Zofle team · 6 November 2026 · 3 min read

The rule is the same on every system: delete what the system or the app can rebuild, use the system's own tool for anything it manages, and do not touch anything with your data in it. Here are the places, by operating system.

macOS

WhereWhat it isVerdict
~/Library/CachesApp cachesSafe. Apps rebuild them. Quit the app first.
~/Library/Logs, /Library/LogsLogsSafe
~/Library/Developer/Xcode/DerivedDataXcode build outputSafe
~/Library/Application Support/MobileSync/BackupiPhone and iPad backupsDelete old ones you will never restore, in Finder's device page
Trash, DownloadsThings you chose to remove or never openedSafe once you look
Local Time Machine snapshotsSpace the Mac frees itself when neededLeave; remove with tmutil only if you must
~/Library/Containers, ~/Library/Mail, Photos libraryYour app data, mail and picturesDo not delete by hand
/System, /private/var/dbSystemNever

Windows

WhereWhat it isVerdict
%TEMP%, C:\Windows\TempTemporary filesSafe. Skip files in use.
Settings, System, Storage, Temporary filesUpdate leftovers, thumbnails, Delivery OptimizationSafe, use that screen
C:\Windows.oldThe previous Windows version after an upgradeSafe to remove through Settings or Disk Cleanup; Windows also removes it by itself after about ten days
C:\Windows\SoftwareDistribution\DownloadDownloaded updatesSafe when no update is installing
C:\Windows\WinSxSThe component storeNever delete by hand. Use DISM /Online /Cleanup-Image /StartComponentCleanup
hiberfil.sysHibernation filepowercfg /h off removes it if you never hibernate (it also turns off Fast Startup)
pagefile.sys, swapfile.sysVirtual memoryLeave
System Volume InformationRestore points and shadow copiesManage in System Protection settings
%LocalAppData% caches (browsers, Teams, Discord)App cachesSafe through each app's settings

Linux

WhereWhat it isVerdict
~/.cacheApp cachesSafe
/var/cache/aptDownloaded packagessudo apt clean
Unused packagesLeft over after upgradessudo apt autoremove
/var/log/journalsystemd logssudo journalctl --vacuum-time=2weeks or --vacuum-size=500M
SnapOld revisions of each snapsudo snap set system refresh.retain=2, then remove disabled revisions
FlatpakUnused runtimesflatpak uninstall --unused
/var/crash, ~/.local/share/TrashCrash reports, trashSafe
/var/lib/dockerDocker images and volumesUse docker system prune, not rm
/etc, /var/lib, /bootConfiguration, state, kernelDo not delete by hand

The checks that save you

  • Look at a folder's size before you delete it. See why your Mac's disk is full for how.
  • Move first, delete later: use the Trash or Recycle Bin and empty it a week on.
  • If a path is not in the table, search for it before removing. A folder with a strange name is often an app's only copy of your work.

Where Zofle fits. Zofle is a free disk cleanup and file finder for Mac and Windows. It shows what is filling a disk, folder by folder, lists developer caches, old build folders and leftovers with their size and date, lets you untick what you want to keep, and sends the rest to the Trash or Recycle Bin first so you can undo it.

Sources and method

  • Apple Support: Free up storage space on Mac.
  • Microsoft Support: Free up drive space in Windows; Microsoft Learn: Clean up the WinSxS folder.
  • Ubuntu documentation: apt, journalctl and snap manual pages.
  • Paths and commands are from each tool's own documentation and can differ by version; run the 'find it' command on your own machine before deleting anything.

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.