Installation
$ [sudo] pip install rmdir
Examples
$ find . -depth -type d -exec rmdir {} \; 2>/dev/null
>>> import rmdir
>>> rmdir.rmdir(".")
recursively delete empty directories
$ [sudo] pip install rmdir
$ find . -depth -type d -exec rmdir {} \; 2>/dev/null
>>> import rmdir
>>> rmdir.rmdir(".")