#cleanup
23 solutions
du measures folder sizes; sorted through sort -rh and cut with head, it shows the top space consumers.
One find command sweeps ~/Library for the caches, preferences, and support folders a deleted app left behind.
Purge deleted files from the Recycle Bin in one PowerShell command, with optional per-drive scoping.
Empty %TEMP% safely from PowerShell to reclaim disk space and clear stale installer caches.
Remove installed programs by ID or name with winget uninstall — scriptable, exact and faster than hunting through Settings.
Fix a Microsoft Store that won't open or fails to download apps by clearing its cache with the built-in wsreset command.
Remove preinstalled Windows apps that lack an Uninstall button using Get-AppxPackage piped into Remove-AppxPackage.
One-line disk usage breakdown of every folder one level deep.
brew cleanup removes old version kegs and cached downloads; -s also scrubs the download cache, --prune=all removes everything cached.
Windows' forgotten find -mtime equivalent — selects files by age and runs a command on each one.
Delete the shortcut files that power Quick Access's Recent files, jump lists, and Office's recent-documents list in one command.
Use the find command with the -empty primary to locate zero-byte files and folders that contain nothing, a forgotten corner of the tool most people never use.