To delete empty folders in Windows 10 or 11, first list them with a PowerShell command (or a cleanup tool that finds them for you), check the list, and then remove only the empty folders in your own documents, projects and data drives. Leave empty folders inside Windows, Program Files, ProgramData and AppData alone, because programs sometimes expect them to exist. Empty folders take up almost no disk space, so the goal is a tidier, easier-to-browse drive rather than gigabytes back.
Where empty folders come from
- Uninstalled programs that leave their folder structure behind in Documents, AppData or the program's own data folder.
- Old projects where you moved or deleted the files but not the folders.
- Extracted archives that created deep folder trees, some of them empty.
- Sync and backup tools that mirror folder structures, including folders whose files were later removed.
- Photo and music imports that create a folder per date or album, even when nothing was imported.
None of these do harm on their own, but hundreds of them make it harder to find things and to see which folders actually matter.
Is a folder really empty?
A folder that looks empty in File Explorer may not be. Windows hides some files by default, such as desktop.ini, which stores a folder's custom icon or view, and Thumbs.db, an old thumbnail cache. A folder containing only hidden files is not technically empty.
To see hidden files, click View > Show > Hidden items in File Explorer. Also bear in mind that a folder holding only other empty folders is effectively empty, but most tools need to remove the innermost folders first.
Method 1: Find and delete empty folders by hand
For a single project folder with a handful of subfolders, File Explorer is enough:
- Open the folder and switch to View > Details.
- Turn on View > Show > Hidden items.
- Open each subfolder you suspect is empty. File Explorer shows "This folder is empty" when it really is.
- Select the empty folders and press Delete. They go to the Recycle Bin.
This becomes tedious quickly for anything larger than a few folders.
Method 2: List and remove empty folders with PowerShell
PowerShell can list every empty folder under a path in one go. Always list first, review, then delete.
List empty folders
- Right-click Start and choose Terminal.
- Run this, changing the path to the folder you want to tidy:
Get-ChildItem -Path "D:\Projects" -Directory -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { -not (Get-ChildItem -LiteralPath $_.FullName -Force -ErrorAction SilentlyContinue) } | Select-Object -ExpandProperty FullName
The -Force switch makes PowerShell count hidden files, so folders containing only desktop.ini are not listed as empty.
Preview the deletion
Run the same command, but replace the last part with a test removal. -WhatIf shows what would be deleted without deleting anything:
Get-ChildItem -Path "D:\Projects" -Directory -Recurse -Force -ErrorAction SilentlyContinue | Where-Object { -not (Get-ChildItem -LiteralPath $_.FullName -Force -ErrorAction SilentlyContinue) } | Remove-Item -WhatIf
Delete for real
When you are happy with the preview, run it again without -WhatIf. Folders removed by PowerShell do not go to the Recycle Bin. Run the command a second time if needed: folders that only contained empty folders become empty themselves once their contents are gone.
Never point these commands at C:\, C:\Windows, Program Files, ProgramData or your whole AppData folder. Use them on your own folders and data drives only.
Save the list for review
For a large drive, it is easier to review the list in a spreadsheet. Replace the last part of the first command with Select-Object FullName | Export-Csv "$env:USERPROFILE\Desktop\empty-folders.csv" -NoTypeInformation, then open the file on your desktop in Excel. Sort it by path, and look for any folders belonging to programs or games you still use before you delete anything.
Folders that refuse to delete
If Windows says a folder is in use, close File Explorer windows and apps that might have it open, including terminal windows whose current location is inside it, and try again. If you get an access denied message, the folder probably belongs to a program or another account, which is a good sign to leave it where it is.
Empty folders you should leave alone
| Location | Why to leave it |
|---|---|
| C:\Windows and subfolders | Windows creates and expects many empty folders for logs, updates and features |
| Program Files and ProgramData | Programs may write to these folders later and fail if they are missing |
| AppData | Apps use empty folders as placeholders for settings, caches and plug-ins |
| Library folders (Documents, Music, Pictures, Videos) | Windows and apps expect the library folders themselves to exist, even when empty |
| Game save folders | Some games expect the folder before they write a save |
| Software project folders | Build tools and templates may rely on empty directories |
| Sync folder roots | Removing synced folders removes them on every device |
If an app starts showing errors after a cleanup, restore its folder from the Recycle Bin or reinstall the app, which recreates any folders it needs.
Method 3: Let a cleanup tool do it
Drive Sweeper finds the empty folders left behind by uninstalled programs and old projects as part of its normal scan, and it skips system folders that should stay. Empty folders are typically marked safe to remove, but you still see the list and approve it first. Anything removed goes into the restore area for 30 days, so if a program turns out to need a folder after all, you can put it back in one click.
Because the same scan also finds duplicates, huge files, old downloads and temporary junk, Drive Sweeper is a convenient way to tidy a drive and recover real space at the same time. Empty folders on their own rarely free much.
Do empty folders slow down your PC?
No, not in any way you would notice. An empty folder is a tiny entry in the file system. Even thousands of them use only a few megabytes and have no measurable effect on speed. The benefits of removing them are practical rather than technical:
- Faster browsing and fewer dead ends when looking for files.
- Cleaner backups and folder comparisons.
- Easier to see which projects are really finished.
If you want to free real space, start with the bigger items covered in our guides to finding large files and finding duplicate files, then tidy the empty folders that are left behind.
Frequently asked questions
Do empty folders take up disk space?
Almost none. An empty folder uses a tiny entry in the file system, so the benefit of removing them is a tidier drive rather than more free space.
Why are there so many empty folders on my PC?
Uninstalled programs, old projects, extracted archives and sync tools often leave empty folders behind.
Is it safe to delete empty folders in AppData or Program Files?
Be careful. Some programs expect an empty folder to exist and recreate it or fail without it. Limit empty folder cleanup to your own documents, projects and data drives.
