remove directory with content python code example
Example: delete contents of directory python
import os
import glob
files = glob.glob('/YOUR/PATH/*')
for f in files:
os.remove(f)
import os
import glob
files = glob.glob('/YOUR/PATH/*')
for f in files:
os.remove(f)