ByteMint Guide

Laptop Storage Optimisation Prompt

Disk Cleanup Guide

Before you start
  • Codex: ChatGPT Plus, Pro, Team, or Business access, in the terminal or the desktop app.
  • Full Disk Access enabled for Codex under System Settings → Privacy & Security, so it can actually see protected folders.
  • 10 minutes, and you approving each deletion before anything runs.
1
Step

Paste This Prompt Into Codex

Open Codex and paste the prompt below as is. It's read-only, so it scans, sizes, and reports without touching anything. Nothing gets deleted until you say so.

Prompt for Codex
2
Step

Turn It Into A Report You'd Actually Read

The raw output is a wall of text. If you want something worth keeping or sharing, ask Codex to restyle it as a single HTML report you can just open in a browser.

Prompt for Codex
A restyled disk audit report showing a warm-neutral title block with used space, free space, capacity, and files scanned stats
The summary Codex generates
The recovery queue table from the restyled report, listing paths, sizes, risk notes, and recommended actions
The recovery queue table
3
Step

Read What It Found

My disk was at 96% full with 9.5GB free. Codex came back with one report, sorted by size impact. Typical finds:

What people typically find
  • Package manager caches (npm, pip, Homebrew): safe to delete
  • Old node_modules folders in dormant projects: safe to delete
  • Video editor caches (Premiere, CapCut, Final Cut): safe once the app is closed
  • Old .dmg and .pkg installers in Downloads: safe to delete
  • Messaging app media (WhatsApp, Telegram, Slack): review first
  • Xcode or Android Studio derived data: safe if you're not mid-project
  • Old Time Machine snapshots and iOS backups: safe once backed up elsewhere
  • Duplicate files in Downloads, Documents, Desktop: easy wins
4
Step

Approve The Cleanup, One Item At A Time

I cleared items one by one. The biggest win was my messaging app's media cache: 9.5GB to 20GB free in one shot.

Then I asked Codex to flag apps I never use. Removing two of those plus a stale npm cache got me to 24GB free, at 88% capacity instead of 96%.