The Easiest Way to Find and Delete Empty Folders in Windows 11

How to Find and Delete Empty Files and Folders with File Explorer

  1. Open Windows 11 File Explorer and navigate to the location where you want to find the empty folder.
  2. Click the “View” button. Then select the “Show > Hidden items” option to display hidden files. “Hidden items” are active with a tick next to it.
file explorer show hidden items
  1. Delete all the empty folders you want one by one.
  2. Meanwhile, to delete empty files, files with a size of 0 bytes, press (CTRL + F), or in the File Explorer search box type “ size:empty ”.
  3. Select the empty files you want and delete them.

Please note that before deleting any folder, make sure you have a backup of your important files, and also double-check before deleting any important folder.

How to Find and Delete Empty Folders with the Command Prompt (CMD)

  1. In File Explorer, select the folder where you want to search for empty folders.
  2. Right-click and select the “Open in Terminal” option.
open terminal
  1. Type the following command:
for /f "delims=" %i in ('dir /s /b /ad ^| sort /r') do rd "%i" 2>NUL

This command will remove all empty directories across subdirectories and nested empty folders (folders within folders).

Latest Articles