I want to be able to run a script that will remove all my empty directories. The problem is some of them are nested, i.e. directories that only have empty directories in them, so the script needs to be recursive.
I know this:
find /media/server/data001/Unprotected/Downloads/ -type d -empty -exec rmdir {} \;
but I have no idea how to make it run again and again until all nested directories have been processed and then stop.