Top Ways to Find and Delete Empty Folders in Windows

Top Ways to Find and Delete Empty Folders in Windows

Knowingly or unknowingly, we create a lot of folders in our Windows PC but forget to delete them by time. We delete internal files but forget to delete empty folders or sub-directories. This creates a lot of broken registry entries in your Windows operating system and makes it corrupt and malfunctioning. Here in this article, we have listed the best possible methods to remove empty folders on Windows 10.

Method 1: Delete Empty Folder Using Windows Explorer

File Explorer or Windows Explorer are the best places where you can find an empty folder with one single click and remove empty folders at a stretch. This is one of the easy ways to find and delete empty folders. Here’s how you can do it!

Step 1: Press Win + E to open Windows Explorer.

Step 2: Select a Drive in the left-hand side panel and see if you can find ‘Search Tools’ on the top ribbon. If search tools are not available, click on the search bar on the top and type folder and hit enter.

Step 3: Search Tools bar will appear where you will find different search options. Click on ‘All Subfolders’ button on the top left, and ensure there is a check on ‘Hidden Items’ in the ‘View’ menu.

Step 4: Under Refined Search Options, click on the ‘Size’ option and select Empty (0 KB). Click on ‘Kind’ and select the ‘Folder’ option. Keep on switching to different options like Tiny, Small to look for different types of folders.

Step 5: It may take a bit longer to scan the entire drive and pull-out empty folders. Once it shows empty directories, you can select them all and remove empty folders.

Method 2: Remove Empty Folder Using Command Prompt

Most of the users are not friendly with the command prompt but removing empty folders using the command prompt won’t require much of your efforts. It’s a powerful tool for professional users as it’s quick and easy to use. All you need to do is enter a few commands and it’s gone.

Step 1: Press Win + I and type CMD in the search window.

Step 2: From the search results, click on the ‘Run as Administrator’ option. You can also open the command prompt with Administrator rights using Windows shortcut keys. Press Win + R to open the run command window, type CMD and press Shift + Ctrl + Enter to open the command prompt in Administrator Mode.

Step 3: by default, it will take you to the sub-directory (user drive) of C: Directory. You can type CD\ and hit enter to come out and reach the main directory.

Step 4: Type D: or E: to go to the specific drive where you want to find and delete empty folders. The letter is the drive letter of your hard drive partition.

Step 5: Now type in the following command to create a batch file that will run automatically to find and delete empty folders. DIR /AD/B/S | SORT /R > EMPTYFOLDER.BAT and hit enter.

Step 6: Now go to Windows Explorer on the same drive and look for the file name EMPTIES.BAT.

Step 7: Right-click on the file and click on the ‘Edit’ option. The file will open in Notepad with a lot of entries in it. Click on the ‘Edit’ menu and then select the ‘Replace’ option.

Step 8: Search for [^p] and replace it with [^pRD ] (Without brackets and a space after D).

Step 9: Click on the ‘Replace All’ button to add the RD (Replace Directory) command line in the batch file.

Step 10: Save the file and go to Windows Explorer once again. Double click the file to run the batch command. It will find and remove empty folders from the specified drive.

Method 3: Remove Empty Folder Using Utility Software

If the above methods are too fussy to apply, you can always make use of one of the best utility software to find an empty folder and remove them in just a single click.

Advanced System Optimizer is one such brilliant tool that can not only find and delete empty folders but also perform an overall optimization on the drive. You can Remove Empty Directories in Windows 10, clear junk files, clean registry files, and other redundant files from your PC.

Features of Advanced System Optimizer

  • Optimize RAM for improved system performance
  • Optimize corrupt registry files and prevent system crash
  • Optimize and fix hard drive issues with one-click optimization
  • One-stop solution for overall PC optimization and maintenance
  • Remove Junk files, temporary internet files, cache, and other redundant files
  • Perform disk space management and regain access to precious hard drive space
  • Scan PC for malware, spyware, adware, ransomware and other malicious trackers
  • Undo Delete feature recovers permanently deleted files and safe-delete files
  • Optimize Windows Startup Manager for selected files to load while booting
  • Finds and removes duplicate files from your folders and subfolders
  • Boost gaming performance with advanced optimization features
  • Scan and update outdated or corrupt device drivers on the PC
  •  Windows Backup and Restore option for all the files on the PC

How it Works

Download and install Advanced System Optimizer on your PC.

Launch the tool and initiate the scan by clicking on the ‘Start Smart PC Care’ button.

Once the scan is complete, click on the ‘Clear Now’ button to repair and fix all the empty folders and broken registry entries. Go to different tabs on the left-hand side panel and scan the PC using the required utility. Advanced System Optimizer is compatible with Windows 10/8.1/8/7/Vista and XP (both 32-bit and 64-bit).

Summing Up

These empty folders may not look problematic however the broken registry files may corrupt your registry and lead to invalid directories. To find an empty folder, you can use any of the above methods and delete an empty folder in a few clicks. Advanced System Optimizer is a one-stop solution for all the system requirements. Now optimize, clean and secure your PC with unwanted system entries with a one-stop solution. Happy Computing!