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: Oldest
  1. Anonymous
    2015-03-26T23:37:46+00:00

    DIR /AD/B/S | SORT /R > EMPTIES.BAT returned pathnames of ALL folders.  Original query was about EMPTY folders. Care to try again? Thanks.

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2015-06-15T16:12:23+00:00

    Does not work for me:

    "Kind:=Folder size:empty"

    returns no results.  The syntax of one having := and the other just : seems weird but I used the dropdown and that's how it appears in the search field. 

    Cannot sort folders by size either, because the size column has no values for folders, only files.  I can mouse over and see the "size" of a folder, so I don't know why Microsoft couldn't either (a) populate the size field with the value that appears on mouseover or (b) if that value shouldn't be called "size" but rather something else like "contents size", then call it that, create a separate property and make it a sortable column applicable to folders only and blank for files (just like "size" is currently blank for folders!!).  Would that be impractical for some reason?

    Was this answer helpful?

    100+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2015-07-23T03:52:30+00:00

    Hello !

    I can go to Computer and at the top right click on search

    but there no «folder» option to click on.

    I get only «size» or «date».

    Is there some VBS one can use ?

    thanks

    rg

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2015-07-25T15:56:57+00:00

    Seems logical  and straight forward but it didn't work for me. I even created an empty folder but it couldn't find it.

    I did try other filters and they worked great but not the empty folder option. When I bumped the size up one notch to Tiny it found a bunch.

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments