`os.removedirs(path)` would delete the root directory. And further too. I.e. if you have configured directory: `/var/place` and then you want to remove all the empty directories like `/var/place/foo/bar` so if you do `os.removedirs('/var/place/foo/bar')` if `/var/place/foo/bar` is empty and `/var/place/foo` is empty and `/var/place` is empty then all you're left with is `/var`. I.e. it deletes too much. 

I tried to remove `/var/place` from `/var/place/foo/bar` you're left with `/foo/bar` which it fail to delete if passed into `os.removedirs()`.