laptop on a desk during a safe cleanup routine

Clean Up Your Laptop Without Breaking Anything

Spread the love

Almost every “my laptop is full” problem comes down to four folders and two virtual disk files, not to the thousand small files a cleaner app wants to sell you. Find the real weight first, delete only what you can name, and leave the system directories alone.

Measure before you delete anything

On Windows 11, open Settings → System → Storage and let it finish scanning. The category list — Apps, Documents, Pictures, Temporary files — gives you real numbers, and clicking each one drills down. For a file-level view, install WizTree (free, reads the NTFS master file table in seconds) or WinDirStat; both draw a treemap where the big rectangles are the big folders. On a 512 GB machine the culprit is nearly always one of five things: a WSL disk image, Docker’s virtual disk, a game library, an old Windows.old, or a Videos folder nobody emptied.

On a Mac, use the Apple menu → System Settings → General → Storage and click the info button beside each bar. “System Data” is the catch-all that hides Time Machine local snapshots, Xcode build caches and simulator images. For exact figures, run du -sh ~/Library/* | sort -h | tail -20 in Terminal, or sudo du -xh -d 1 / | sort -h | tail for the whole volume.

What is genuinely safe to remove

  • Installers in Downloads. .exe, .msi, .dmg and .pkg files older than a month. On a work laptop these routinely total 8–40 GB.
  • Windows.old at C:\Windows.old, which Windows deletes ten days after a feature update. To reclaim it now, run Disk Cleanup, choose Clean up system files, and tick Previous Windows installation(s).
  • hiberfil.sys, roughly 40 percent of your RAM. powercfg /h off in an administrator Command Prompt frees it, at the cost of hibernation and Fast Startup.
  • Application caches you can identify by name: browser profiles, Spotify offline downloads, the Teams cache under %AppData%\Microsoft\Teams.
  • Duplicate media. Run dupeGuru or Czkawka on Pictures and Videos before deleting by hand; both compare file contents, not filenames.

Four places to leave alone: C:\Windows\WinSxS (the component store — deleting it breaks future updates; use DISM /Online /Cleanup-Image /StartComponentCleanup instead), C:\ProgramData, ~/Library/Application Support, and anything under /System on macOS. Registry cleaners and “PC optimiser” suites belong in the same bin: they promise gigabytes and deliver broken COM registrations and missing file associations.

Laptop open on a desk beside an external backup drive during a disk cleanup

The hogs the built-in tools will not mention

WSL2 disk images grow and never shrink on their own. In PowerShell run wsl --shutdown, then open diskpart and issue select vdisk file="C:\Users\you\AppData\Local\Packages\...\LocalState\ext4.vhdx", attach vdisk readonly, compact vdisk, detach vdisk. A dev machine that has been running for a year often gives back 20–60 GB this way.

Docker Desktop keeps everything in one virtual disk. Settings → Resources → Advanced shows its size, and Clean / Purge data resets it. The command-line equivalent is docker system prune -a --volumes, which removes every image and volume you are not currently using.

On macOS, Time Machine local snapshots hold deleted files until the next backup completes. tmutil listlocalsnapshots / shows them; sudo tmutil thinlocalsnapshots / 20000000000 4 asks for 20 GB back. Xcode is the other silent giant: ~/Library/Developer/Xcode/DerivedData and ~/Library/Developer/CoreSimulator/Devices can pass 30 GB between them. Delete DerivedData outright, and prune simulators with xcrun simctl delete unavailable. Old iPhone backups live in ~/Library/Application Support/MobileSync/Backup, at 3–15 GB each.

Microsoft’s storage guidance covers the supported route through Storage Sense and Disk Cleanup: support.microsoft.com — Free up drive space in Windows. Apple’s equivalent for Macs is at support.apple.com/en-us/102624.

Fix what starts, not just what is stored

Deleting files buys space; disabling startup items buys speed, and mixing the two up is how people end up removing documents they needed while the laptop still takes ninety seconds to show a desktop. On Windows press Ctrl+Shift+Esc, open the Startup apps tab and sort by Startup impact. Disable — do not uninstall — the chat clients, game launchers and update helpers you do not need at login. Check Settings → Apps → Installed apps sorted by size for anything you forgot you installed.

On macOS go to System Settings → General → Login Items & Extensions. The “Allow in the Background” list is where Dropbox, Zoom and every Adobe helper hide. Leave antivirus, audio drivers and the Intel, AMD or NVIDIA management services enabled; disabling those produces problems that look like hardware faults.

Back up before the first delete

Three copies, two media, one offsite. On Windows, turn on File History to an external drive and keep a full image with Macrium Reflect Free or the built-in backup. On a Mac, Time Machine to an external SSD plus Backblaze or iCloud covers it. Then prove the backup works by restoring one file from last week into a scratch folder — an untested backup is a hope, not a plan.

Two related walkthroughs if you want to go deeper: freeing disk space on Windows without deleting files and reclaiming space on a Mac. If your browser profile is the thing eating the disk, clearing the cache without signing out everywhere is a safer first move than wiping the whole profile.

Scroll to Top