DELETE All subfolders inside a FOLDER using python code example Example: delete folder and its subfolders in python import shutil shutil.rmtree('/path/to/your/dir/')