How to Search for Empty Folders in Windows 11

Over time, your Windows 11 PC can accumulate hundreds of empty folders left behind by uninstalled apps, temporary setups, or misconfigured scripts. These folders don’t usually harm performance, but they can clutter up your storage, complicate file searches, and make organizing your drive more difficult.

Unfortunately, File Explorer doesn’t include a direct built-in option to find empty folders. However, there are a few reliable methods to identify and clean them up — including PowerShell commands, Command Prompt scripts, and specialized file search tools.

In this guide, we’ll walk you through how to locate and optionally remove empty folders safely on Windows 11.

What You’ll Need

Before you start, make sure you have administrator access on your PC. If you plan to delete folders afterward, it’s a good idea to back up your files or test on non-critical directories first. No third-party software is required for this guide, although using PowerShell or Command Prompt is recommended for accurate results.

Tip: Always review the list of empty folders before deleting them. Some system directories appear empty but may store hidden configuration files required by Windows or specific applications.

Step 1: Check Manually Using File Explorer (Limited)

If you only want to check a specific folder for emptiness, File Explorer can help — though it’s slow for large drives.

  1. Open File Explorer with Windows + E.
  2. Navigate to the folder you want to inspect.
  3. Click View → Show → Hidden items to ensure all hidden folders and files are visible.
  4. Browse through the subfolders. If you see folders with no contents or only empty subfolders, they are likely safe to remove.

This method works for small areas like your Downloads or Documents folder but is impractical for scanning an entire drive.

Step 2: Find Empty Folders Using Command Prompt

Command Prompt can quickly list empty directories across a drive or folder tree.

  1. Press Windows + R, type cmd, and press Enter.
  2. Run the following command to search for empty folders on your C: drive: for /f "delims=" %d in ('dir "C:\*" /s /b /ad ^| sort /r') do @if not exist "%d\*" echo %d This command scans all directories under C: and lists those that don’t contain any files or subfolders.
  3. To target a specific folder instead of the entire drive, replace C:\* with that folder path.

You can copy the results and save them to a text file for review if needed. This approach only lists folders — it doesn’t delete anything automatically.

Step 3: Find Empty Folders Using PowerShell

PowerShell provides a more modern, flexible way to search for empty folders, with easy export and deletion options.

  1. Press Windows + X and select Windows Terminal (Admin) or PowerShell (Admin).
  2. Run this command to list all empty folders on your C: drive:
    Get-ChildItem -Path "C:\" -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { -not (Get-ChildItem -Path $_.FullName -Recurse -ErrorAction SilentlyContinue) } | Select-Object FullName
    PowerShell will output the full paths of all empty folders it finds.
  3. To save the list to a file for review, use this version: Get-ChildItem -Path "C:\" -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { -not (Get-ChildItem -Path $_.FullName -Recurse -ErrorAction SilentlyContinue) } | Select-Object FullName | Out-File "C:\EmptyFolders.txt" This creates a report in a text file named EmptyFolders.txt on your C: drive.

Step 4: Delete Empty Folders Automatically with PowerShell

Once you’ve confirmed that the listed folders are safe to remove, you can run a cleanup command to delete them automatically.

  1. Open PowerShell (Admin) again.
  2. Run this command: Get-ChildItem -Path "C:\" -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { -not (Get-ChildItem -Path $_.FullName -Recurse -ErrorAction SilentlyContinue) } | Remove-Item -Force This deletes all empty folders under the C: drive.

Always double-check your target path before running this command. For safety, test it first on smaller folders (for example, Downloads or Documents) instead of the entire drive.

Step 5: Use Third-Party Tools (Optional)

If you prefer a graphical interface, there are third-party utilities designed specifically to find and delete empty folders. Trusted options include:

  • Wise Disk Cleaner – offers a dedicated “Empty Folders” cleanup option.
  • CCleaner – detects and removes unnecessary folders during system cleanup.
  • TreeSize Free – visualizes folder sizes and can highlight zero-byte directories.

These tools are helpful if you want to preview results before deletion, but always download them from their official websites to avoid bundled software or potential malware.

Step 6: Exclude System and Hidden Directories

Be cautious not to delete essential system folders that might appear empty. Some Windows directories store hidden metadata files or permissions even when they look empty in File Explorer.

To avoid damaging your system:

  • Skip scanning the C:\Windows, C:\Program Files, and C:\ProgramData folders.
  • Avoid deleting hidden folders unless you understand their purpose.
  • Use PowerShell’s -ErrorAction SilentlyContinue parameter to safely skip protected folders.

Wrapping Up

Empty folders may not consume much storage, but removing them can simplify directory structures, improve search results, and make backups more efficient. Whether you prefer using PowerShell, Command Prompt, or a third-party tool, finding them in Windows 11 is straightforward once you know where to look.

Always verify your results before deleting anything from system directories. Once you’ve cleaned up, you’ll have a tidier, more organized file system — and one less reason for Windows Search to take forever indexing folders that contain absolutely nothing.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.