Delete Empty Folders in Windows 11, 10, 8, 7

Delete Empty Folders
Avatar of Jack Taylor By Jack Taylor, Software Expert & Technology Writer
Last Updated:

In this article, we have listed the best free methods to delete empty folders in Windows. Find all empty folders on a computer, drive, folder, or entire network.

None of this is really about reclaiming disk space – empty folders barely register on that front. It’s more about keeping a file system that’s actually easy to navigate. A drive with a few hundred dead folders scattered through it just makes everything slower to search and harder to browse, especially on shared network drives where several people are adding and removing things over time.

A few concrete reasons it’s worth clearing them out:

  1. Clutter – more folders to scroll past when you’re looking for the one you actually need.
  2. Confusion – an empty folder with a familiar name makes you wonder if something got deleted or moved by mistake.
  3. Backup bloat – backup tools often copy folder structures wholesale, empty ones included, which adds a little unnecessary time and redundancy to every backup run.
  4. Maintenance overhead – on a shared drive with a lot of contributors, empty folders pile up fast and nobody ever seems to be the one who cleans them.
  1. Delete Empty Folders Using the Free Folder Size App
  2. Steps to Delete an Empty Folder in Windows
  3. Delete Empty Folders From the Command Line
  4. Delete Empty Directories in PowerShell

1. Delete Empty Folders Using the Free Folder Size App

Folder Size is free, and finding/deleting empty folders is really just one of several reports it can run – it’s also useful for general disk cleanup once you’re already in there. A few of the other reports available:

For a full breakdown of the empty-folder and empty-file reports specifically – including the difference between zero-size and zero-item folders – see our guide on how to find empty folders and files in Windows.

The tool lists every folder’s size, including everything in its subfolders – something Windows Explorer just doesn’t show you on its own. That makes it easy to spot which folders are worth investigating, whether they’re the largest ones or, in this case, the emptiest.

Find Empty Folders and Files

Find Empty Folders and Files

Results can also be viewed as a bar or pie chart if you’d rather see the breakdown visually than scroll through a list.

Worth knowing about too: the app can print a folder list to a printer or PDF, and export everything to Excel or XML if you need a record of what was cleaned up.

Folder Sizes

Folder Sizes

Download: Folder Size

2. Steps to Delete an Empty Folder in Windows

  1. Right-click a folder in Windows Explorer and choose “Scan with Folder Size.”
  2. Once it’s scanned, open the reports menu on the toolbar (the button with the down chevron, showing “Files and folders” by default) and select “Empty -> Folders (zero sizes).”
  3. Every empty folder in that location shows up in the list on the right.
  4. Select the ones you want gone, or press CTRL+A to grab all of them at once.
  5. Hit Delete or right-click and choose “Delete” – by default these go to the Recycle Bin. Hold SHIFT while deleting if you want them gone permanently instead.

3. Delete Empty Folders From the Command Line

No extra software needed here, but this one deserves some caution – it’s easy to point it at the wrong folder if you’re not careful, and there’s no confirmation prompt before it starts deleting.

Steps to remove empty folders from Command Prompt:

  1. Open File Explorer and navigate to the folder or drive you want to clean up.
  2. Hold SHIFT and right-click the folder or drive, then choose “Open command window here.” A console window opens.
  3. Paste this command and press Enter:
    for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d"
Delete Empty Folders Command Line

Delete Empty Folders Command Line

The rd command won’t touch anything that still has data in it – it walks through every folder and subfolder, sorts them in reverse order, and only successfully deletes the ones that are genuinely empty. Anything with files or subfolders still inside just gets skipped.

4. Delete Empty Directories in PowerShell

In PowerShell, the Remove-Item cmdlet combined with -Directory and -Recurse does the same job as the command-line method above, just with a bit more control.

  1. Open PowerShell.
  2. Navigate to the folder you want to clean up:cd C:\Path\To\Parent\Folder
  3. Run:Get-ChildItem -Directory -Recurse | Where { $_.GetFiles().Count -eq 0 -and $_.GetDirectories().Count -eq 0 } | Remove-Item -ForceWhat each part does: Get-ChildItem -Directory -Recurse pulls every directory recursively; Where { … } filters that list down to only the ones with zero files and zero subdirectories; Remove-Item -Force deletes whatever’s left in that filtered list.
  4. Press Enter to run it.

Double-check the path before running this – once it executes, there’s no confirmation step and no easy way to tell it “actually, not that one.”

What These Methods Won’t Catch

None of the command-line or PowerShell methods above will touch a folder that contains junk files rather than nothing at all – a stray thumbs.db file, for instance, which Windows generates automatically to store image previews. As far as the command is concerned, that folder isn’t empty, so it gets skipped even though there’s nothing in it you’d actually want to keep. Folder names with non-Latin characters can also trip up the command-line method specifically, since it doesn’t handle Unicode.

This is really where Folder Size has the advantage – it flags folders like this by size or item count, lets you actually see what’s inside them before anything gets deleted, and sends removed folders to the Recycle Bin by default so a mistake is recoverable with a simple restore rather than gone for good.

If you haven’t identified all your empty folders yet, start with our guide on how to find empty folders and files in Windows before working through the deletion steps here.

How do I delete all empty folders in Windows 10 or 11?

The fastest way is to right-click a folder or drive and choose “Scan with Folder Size,” then filter the results to show only empty folders. Select all of them with CTRL+A and delete in one go. Alternatively, a Command Prompt or PowerShell command can do the same job without installing software.

Is there a free tool to find and delete empty folders?

Yes. Folder Size is a free tool that scans a drive or folder and lists every empty folder it finds, along with file counts and sizes, so you can review and delete them safely from within the same app.

How do I delete empty folders using Command Prompt?

Open a command window in the target folder, then run a command that lists all directories, sorts them in reverse order, and removes each one that’s genuinely empty. Folders containing files or subfolders are automatically skipped.

How do I delete empty directories in PowerShell?

Use Get-ChildItem with the -Directory and -Recurse parameters to list every folder, filter that list down to folders with zero files and zero subfolders, then pipe the result into Remove-Item -Force to delete them.

Why won’t some empty folders delete?

A folder that looks empty in Explorer may still contain a hidden system file, such as thumbs.db, which Windows generates automatically. Command-line methods only remove folders with zero files and zero subfolders, so a folder with a hidden leftover file gets skipped.

Does deleting empty folders free up disk space?

Not meaningfully. Empty folders take up almost no disk space on their own. The real benefit is a cleaner, easier-to-navigate file system, especially on shared or network drives where empty folders accumulate over time.

Can I recover a folder I accidentally deleted?

If it was deleted through Explorer or a tool like Folder Size, it typically goes to the Recycle Bin by default and can be restored. Folders deleted through Command Prompt or PowerShell are removed permanently, with no confirmation step and no Recycle Bin safety net.

How do I find empty folders on a network drive?

Folder Size can scan network locations the same way it scans local drives, listing empty folders across the entire share. This is especially useful on drives with multiple contributors, where empty folders tend to build up unnoticed.

What’s the difference between a zero-size folder and an empty folder?

A zero-size folder contains no files with actual data, but it may still contain empty subfolders. A truly empty folder has zero files and zero subfolders of any kind. Some tools distinguish between the two, which matters if you only want to remove folders that are completely empty.

Is it safe to delete empty folders?

Generally yes, since an empty folder holds no data to lose. The main risk is with command-line methods, which delete permanently with no confirmation prompt, so it’s worth double-checking the target path before running any command.

This entry was posted in Featured Posts, Folder Size, News on by .
Avatar of Jack Taylor

About Jack Taylor

Software Expert & Technology Writer
Jack Taylor is an IT professional and technology writer with over 20 years of experience in cybersecurity, enterprise infrastructure, storage technologies, and software optimization. He focuses on making complex technical topics easy to understand through practical guides, software reviews, and real-world troubleshooting advice.

14 thoughts on “Delete Empty Folders in Windows 11, 10, 8, 7

  1. Avatar of MindGems SupportMindGems Support

    Hello, there is no menu – the report types are on the toolbar and by default is selected “Files and folders” and the text of the report type button is in BOLD. Click the report button to change the report type.

  2. Lily

    Not super technical but the Folder Size steps were easy enough to follow. Found like 40 empty folders I didn’t even know were there, mostly leftover from old project backups.

  3. Emily Jules

    Used the command prompt method since I didn’t want to install anything. Worked fine but wow, no confirmation before it deletes is a bit scary. Ran it on a test folder first just to be safe.

  4. Nathan

    Didn’t realize PowerShell could do this until now. The Get-ChildItem command worked but took a while on a folder with like 50k subfolders. Worth it though.

  5. Ben

    Good explanation of why this even matters. I always assumed empty folders were pointless clutter but never really understood the backup angle until reading this.

  6. OliveOilJules

    Quick question, does the Folder Size app work on mapped network drives or only local ones? Article mentions network drives but wasn’t 100% clear if that’s this specific method.

  7. Avatar of MindGems SupportMindGems Support

    Good question – yes, Folder Size works on mapped network drives the same way it works on local ones, since Windows treats a mapped drive like any other drive letter. If you’re scanning a UNC path directly (like \\server\share) instead of a mapped letter, that works too, just a bit slower depending on your network speed. Let us know if you run into anything specific.

  8. Emma K

    The thumbs.db thing explains a lot actually, I had a bunch of “empty” folders that the command line kept skipping and couldn’t figure out why.

  9. Jack

    Command line one worked for most of my drive but choked on a folder with Cyrillic characters in the name, had to delete that one manually. Otherwise did the job.

  10. Avatar of MindGems SupportMindGems Support

    Thanks for flagging that – the command-line method doesn’t handle Unicode folder names well, so anything with Cyrillic, Chinese, or other non-Latin characters can get skipped or throw an error. The PowerShell method in the article handles this better since it doesn’t rely on the same text parsing. Folder Size also handles it cleanly if you’d rather avoid the command line altogether for cases like this.

  11. Sophia L

    Downloaded Folder Size, scanned my main drive, found way more empty folders than expected. The pie chart view is a nice touch for seeing where the mess actually is.

  12. David

    Used this after moving a bunch of old project files around, ended up with dozens of empty folders in random spots. The Recycle Bin default is reassuring since I always worry about running the wrong command on the wrong folder.

  13. MikeK

    Been using Folder Size for a while for the largest-files reports, didn’t know it also handled empty folders until this article. Saved me from writing my own script.

Leave a Reply

Your email address will not be published. Required fields are marked *