tags:

views:

988

answers:

2

What is the easiest way to do the equivalent of rm -rf in python?

+18  A: 
import shutil
shutil.rmtree("dir-you-want-to-remove")
Josh Gibson
+1  A: 

shutil.rmtree() is right answer, but just look at another useful function - os.walk()

maxp