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:
- Clutter – more folders to scroll past when you’re looking for the one you actually need.
- Confusion – an empty folder with a familiar name makes you wonder if something got deleted or moved by mistake.
- Backup bloat – backup tools often copy folder structures wholesale, empty ones included, which adds a little unnecessary time and redundancy to every backup run.
- 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.
- Delete Empty Folders Using the Free Folder Size App
- Steps to Delete an Empty Folder in Windows
- Delete Empty Folders From the Command Line
- 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:
- Find Largest Files
- List Largest Folders
- Largest Files And Folders
- Locate Oldest Files
- Display Oldest Folders
- Search Oldest Files And Folders
- Identify Newest Files
- View Newest Folders
- Display Newest Files and Folders
- Longest Paths and Longest File Names
- Show Hidden Files & Folders
- Show Folder Size Charts
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
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
Download: Folder Size
2. Steps to Delete an Empty Folder in Windows
- Right-click a folder in Windows Explorer and choose “Scan with Folder Size.”
- 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).”
- Every empty folder in that location shows up in the list on the right.
- Select the ones you want gone, or press CTRL+A to grab all of them at once.
- 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:
- Open File Explorer and navigate to the folder or drive you want to clean up.
- Hold SHIFT and right-click the folder or drive, then choose “Open command window here.” A console window opens.
- Paste this command and press Enter:
for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d"
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.
- Open PowerShell.
- Navigate to the folder you want to clean up:
cd C:\Path\To\Parent\Folder - 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. - 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.

I don’t see any menu item saying “empty.”
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.