SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply do this:
import os import glob files = glob.glob('/YOUR/PATH/*') for f in files: os.remove(f)
You can of course use an other filter in you path, for example : /YOU/PATH/*.txt for removing all text files in a directory.