in reply to Permission denied to delete an empty folder
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self
Note that the permissions for deleting the folder aren't the permissions on the folder, they are the write permissions of the parent!. I got bitten by that, once or twice - usualy when I didn't want to delete that specific folder, but wanted to delete all the other files and folders.