Use shutil.rmtree:
import shutil
shutil.rmtree(path)
See the documentation for details of how to handle and/or ignore errors.
Use shutil.rmtree:
import shutil
shutil.rmtree(path)
See the documentation for details of how to handle and/or ignore errors.