Josh Gibson Josh Gibson - 6 months ago 35
Python Question

Easiest way to rm -rf in Python

What is the easiest way to do the equivalent of

rm -rf
in Python?

Answer
import shutil
shutil.rmtree("dir-you-want-to-remove")