Stella
PC cleanup

Delete all empty folders at once

28 empty folders gone from Documents, every file left where it was.

Download StellaFree with the plan you already have.

A real run on 13 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan.

The short answer.

On a Mac, find ~/Documents -type d -empty -delete in Terminal removes empty folders from the bottom up, so a folder that held only empty folders goes too. On Windows, a one-line PowerShell command does the same, or a free tool such as Remove Empty Directories. The catch: a folder holding only a hidden .DS_Store or Thumbs.db isn't empty to these tools. Stella (stella.sh) clears every empty folder level by level and leaves any folder with a file in it.

Stella does this on Windows, Mac and Linux.

What happened.

28 empty folders deleted in under 30 seconds. Checked afterwards against an answer key written before the run: all 28 are gone, including those that only held other empty folders, all 33 folders with files are still there, and no file was deleted or changed. One optional check missed: the four folders holding only hidden system files were kept. Stella said why and offered to remove them.

The Documents folder is a test folder made for this run. The run isn't sped up.

How Stella does it.

  1. Scans every folder in Documents, hidden files included
  2. Deletes folders with nothing in them, like the old “New folder (2)” leftovers, and then the parents they leave empty, such as Work/Old/Archive
  3. Keeps every folder with a file in it, including one whose only file is an empty placeholder.txt
  4. Leaves four folders whose only contents are hidden system files (.DS_Store, Thumbs.db), because the prompt said not to touch anything with files, and offers to remove them
  5. Reports how many folders went and that all 31 files are where they were

The prompt.

My Documents folder is full of empty folders left over from years of moving things around. Delete all the empty ones, but don't touch anything that has files in it.

Paste it into Stella and press Enter.

This is the exact prompt from the recording. If your files are somewhere else, say where.

Do it yourself.

  1. Mac: list them first

    Open Terminal and run find ~/Documents -type d -empty -print. Read the list to be sure nothing you want is on it.

  2. Mac: delete them

    Run find ~/Documents -type d -empty -delete. It works from the deepest level up, so a folder that only contained empty folders is removed too. They're deleted outright, not moved to the Trash.

  3. Mac: folders with only .DS_Store

    Finder leaves hidden .DS_Store files that make a folder look non-empty to find. To clear those too, first run find ~/Documents -name .DS_Store -delete (Finder recreates them as needed), then the delete command again.

  4. Windows: PowerShell

    Open PowerShell and run Get-ChildItem $HOME\Documents -Directory -Recurse | Sort-Object { $_.FullName.Length } -Descending | Where-Object { -not (Get-ChildItem $_.FullName -Force) } | Remove-Item. Add -WhatIf at the end first to see what would go.

  5. Windows: a free tool

    Remove Empty Directories and similar free tools show a list of empty folders before deleting, and can treat Thumbs.db and desktop.ini as junk. Check the list before you click delete.

Where it stops.

  • Stella counts any file as a file, hidden system files included, unless you say they're junk. Here it kept four folders holding only .DS_Store or Thumbs.db and asked; add “ignore .DS_Store and Thumbs.db” to the prompt to clear those too.
  • Empty folders are deleted outright, not moved to the Trash or Recycle Bin. There was nothing in them, but say so if you'd rather they went to the Trash.
  • Folder names are seen by the AI model you use in Stella. The work happens on your computer.
  • Cloud-synced folders (OneDrive, iCloud Drive, Dropbox) may bring placeholders back.
  • Recorded on Linux. On a Mac Stella can use the same built-in tools; on Windows it uses PowerShell, which wasn't recorded.

Questions.

Is it safe to delete empty folders?

In your own Documents, Desktop or Pictures, yes. Don't clear empty folders inside program folders, game folders or system locations: some apps expect them and recreate errors if they're missing.

Why does a folder look empty but won't count as empty?

It holds a hidden file, usually .DS_Store from a Mac or Thumbs.db and desktop.ini from Windows. Show hidden files (Cmd-Shift-. on a Mac; View, Show, Hidden items on Windows) to see them.

Where do all these empty folders come from?

Moving files out of folders, unzipping, and apps that create folders they never use. Flattening a folder tree leaves many: see move files from subfolders into one folder.

What else frees up space?

Empty folders take almost no space. For real gains, find the large files taking up space and sort out the Downloads folder.

Is Stella free for this?

Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

Can I control what Stella changes on my computer?

Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Checked against these sources on 13 November 2026.

Stella