Josh Gibson Josh Gibson - 2 years ago 196
Python Question

Easiest way to rm -rf in Python

What is the easiest way to do the equivalent of

rm -rf
in Python?

Answer Source
import shutil
shutil.rmtree("dir-you-want-to-remove")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download