Delete A Directory Containing Files with Python
How to delete a folder that is not empty in Python.
import shutil dir = '/path/to/dir' shutil.rmtree(dir)
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.