How to clean your Mac or Windows laptop with Claude Code

Use Claude Code on your own machine to find the folders and files eating your disk space, review them, and clear them out safely. It suits anyone whose storage is full but who cannot tell what System Data or Other means. You need a paid Claude plan and a backup of anything important.

YouTube video: How to Clean Your Mac or Windows Laptop with Claude Code

Caption availability is unknown. Check the CC control in the YouTube player.

Video length
1 min 8 s
Time to do it
10 minutes
Difficulty
Easy
Steps
9

What you need

Steps

  1. Install Claude Code on your laptop and launch it in a terminal window on the machine itself. Do not use a browser tab, because it needs direct access to your folders.

  2. Paste the scan prompt and let Claude walk your whole laptop. It returns a list of the files and folders taking up the most space, sorted by size.

  3. Paste the second prompt so Claude opens a separate sub chat for each heavy folder, such as Desktop, Downloads, WhatsApp and cache.

  4. Work through one sub chat at a time and ask for that folder's heaviest files. Read the list before you approve anything.

  5. Ask Claude "What is this file, and is it safe to delete?" for every item you do not recognise. Skip anything it cannot explain clearly.

  6. Name the folders Claude must not touch, like your work, college or photo library folders, before it starts removing files.

  7. Tell Claude to move unwanted files, including duplicates, to Trash or Recycle Bin instead of deleting them permanently, so you can still rescue something.

  8. Open Trash on Mac or Recycle Bin on Windows, restore anything you still need, then empty it yourself. The space only comes back after this.

  9. Optionally ask Claude to sort what is left into folders by file type, so Desktop and Downloads stay tidy.

Tips and common mistakes

Start with Downloads and WhatsApp folders, since they fill up quietly over months.

Back up important files to an external drive or cloud before you approve any deletion.

Empty the Trash or Recycle Bin at the end, or your free space will not change.

Check your company IT rules before installing new tools on a work laptop.

Questions

Does Claude Code work on Windows?

Yes. It runs on both Mac and Windows laptops. The only difference is that Windows uses the Recycle Bin instead of the Trash.

Will Claude delete my files without asking?

You stay in control. Tell it to ask before deleting anything, and review each list it shows you before you say yes.

Is Claude Code free?

No. It needs a paid Claude plan, so check the current pricing before you start.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Computers & Phones

See all