SyntaxFix
Write A Post
Hire A Developer
Questions
Try shutil.rmtree:
shutil.rmtree
import shutil shutil.rmtree('/path/to/your/dir/')