What is the easiest way to do the equivalent of rm -rf in Python?
rm -rf
Just do this:
import os dirname = "path_to_directory_to_remove" os.system("rm -rf %s" % dirname)