Hi Caroline,
Please used following bash command to accomplish required task
find /var/www/ -type d -empty -print0 -exec rmdir {} ;
i assume your have empty directories in /var/www tree
if you want to remove empty directories in current directory you can use find -type d -empty -print0 -exec rmdir {} ;
Let me get into little more details
ok if you want to search for empty directory in /var/www tree you can use
find /var/www/ -type d -empty -print0
if you want to delete then silently with out any prompt use -exec
find /var/www/ -type d -empty -print0 -exec rmdir {} ;
if you want to delete then and see a prompt so you can skip some off you should use use -ok rather than useing -exec
find /var/www/ -type d -empty -print0 -ok rmdir {} ;
Thanks
bnhashmi