deleting directory tree

Daniel Dittmar daniel.dittmar at
Wed Nov 21 10:31:15 CET 2001

> Can someone explain what os.removedirs() does? I needed a function to
> a directory and all its files and subdirectories, and ended up writing
> It seems that there should be such a function in os, but I drew a blank.

Use shutil.rmtree ().


More information about the Python-list mailing list