Find and remove empty folders

Allume's Spring Cleaning will, among other things, find empty folders and allow you to delete them. Like any tool of its type, Spring Cleaning can be a useful tool, but used indiscriminately, it can be dangerous as well. Just be sure you know what you are deleting or you can easily wind up having to reinstall an application or the entire OS.
 
perfessor101 said:
Allume's Spring Cleaning will, among other things, find empty folders and allow you to delete them. Like any tool of its type, Spring Cleaning can be a useful tool, but used indiscriminately, it can be dangerous as well. Just be sure you know what you are deleting or you can easily wind up having to reinstall an application or the entire OS.

Since OSX is unix, you could use rmdir (from Terminal). If directory is empty,
it removes it. If it is not, it gives a warning but does nothing. So, type

rmdir */*/*/*/*/*/*
rmdir */*/*/*/*/*
rmdir */*/*/*/*
rmdir */*/*/*
rmdir */*/*
rmdir */*
rmdir *

on directory which you like to clean. It might be that a couple of first commands
do not work, since there are too many files, but go to some subdirectory there.
 
Back
Top