Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
delete folder and its subfolders in python
M. M.
Programming language:
Python
2021-06-14 17:42:33
0
Q:
delete folder and its subfolders in python
Mark Swardstrom
Code:
Python
2021-08-29 07:48:01
import shutil shutil.rmtree('/path/to/your/dir/')
0
Tags
python
sub
folder
Related
python remove empty folders
python delete all files in directory
python read a directory to get all files in sub folders
python dlete folder
New to Communities?
Join the community