How to Find & Delete Empty Folders on Your PC [3 Ways]
Removing empty folders manually is simpler than you think
3 min. read
Updated on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
Key notes
- If you want to delete empty folders, you can do that by manually searching for them.
- Alternatively, you can use Command Prompt to delete them or specialized software.
Unnecessary directories can clutter your hard drive, and this is why many users want to delete empty folders on their PC.
This isn’t always easy, especially if you can’t delete folders on your PC. But if you’re still determined to remove these folders, this guide will show you how to do it.
Note that you won’t be able to delete a folder if you’re not its owner or if you don’t have the necessary permissions. So take ownership of the folder or ask the administrator to give you full access.
How can I delete empty folders?
1. Search for empty folders
- Open This PC.
- Click on the Search bar and enter size:empty.
- After the search ends, it will display all files and folders that do not take up any memory space.
- Select the ones you want to delete, right-click on one of them, and click on Delete.
This first method does not require any software to be installed but is based on a search based on size.
2. Clear Registry entries using a specialized tool
Registry cleaners can help you delete redundant items from your computer’s registry, including empty folders.
These tools perform a complete scan of your PC and provide a thorough system diagnosis within a few moments. Afterward, these tools will allow you to replace any broken or corrupted files they identify.
In case the registry keys have been damaged severely, you can replace them with new and healthy ones from its online repository.
3. Use Command Prompt
- Open search and look for command prompt. Select Run as administrator.
- Type the following command and press Enter:
cd /
- In the Command Prompt, type the following command and press Enter:
DIR /AD/B/S | SORT /R > EMPTIES.BAT
- Open the file with Word or any other editor. Word has a Find and Replace feature.
- Search the structure ^p and replace it with ^pRD.
- Save the EMPTIES.BAT file and exit from your editor.
- Run the file and try to delete all the folders on that list, but it will fail for the folders with content.
This method is a little more challenging to implement, but if you follow these steps thoroughly, you can do it.
Can I delete all empty folders on my computer?
While it’s possible, you shouldn’t remove all empty folders due to the following reasons:
- System issues – Even if a folder is empty, it might have its purpose. So if you notice a You need Administrator permission to delete folder message, you’re probably working with a system directory, and you should leave it be.
- Software issues – Just like with system directories, the software creates empty folders that it uses when needed. If you remove them, certain applications won’t start or work properly.
If you are facing other issues, like being unable to rename folders on Windows, check our detailed guide to fix it quickly.
We also have a guide on solving 2 Windows folders issue that can help you, so don’t miss it.
Please comment in the section below for more questions and suggestions.
User forum
4 messages