How do I find all the empty folders and delete them.

Anonymous
2011-04-03T17:52:58+00:00

My music has a bunch of folders that are empty but it will take forever to look at every single one.  I want to search by size or someway that will make it easier to find and delete

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2011-05-15T16:05:51+00:00

Hello !

If you do want to delete all the empty folders only ! go to Computer and at the top right click on search. Click on kind and Select folder, now click again on search and click on size, select 0 and click on search.

This should list all the empty folders

Regards

Was this answer helpful?

800+ people found this answer helpful.
0 comments No comments

55 additional answers

Sort by: Newest
  1. Anonymous
    2015-12-28T18:08:10+00:00

    nahi ho raha hai bhai....nekar hai method.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-12-20T16:07:52+00:00

    This powershell command will remove empty directories in the working directory:

    dir -Directory -Recurse | where {($_ | dir).Count -eq 0} | rmdir

    The command must be run in a powershell window. Be sure to cd to the immediate parent directory containing the empty directories you want to delete (you can double-check with the pwd command).

    Use this command to check what will be deleted without actually deleting stuff:

    dir -Directory -Recurse | where {($_ | dir).Count -eq 0} | rmdir -WhatIf

    NB: To delete directories that contained only empty directories run the command again.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-12-06T11:15:21+00:00

    This does not work and hasn't as long as I can remember.  

    SO

    Sohail.Khan911's response below points to a nice little application that does work.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-10-20T00:28:59+00:00

    I found this solution did not work.  There seemed to be no way to display the folder size or file number content in a folder list.  Only by checking properties or hovering over each folder - not practical when you have hundreds of folders to remove.

    One work around I found was kinda useful was a piece of freeware called Wiztree - actually designed to find and remove bloated folders but you can do the scan and then scroll down to the folders with 0 contents and delete them en masse.

    Have a look on CNET or another trusted download site.  I've used it on a couple of machines and never found it to have adware or malware.

    Was this answer helpful?

    0 comments No comments