Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete contents of directory python

import os
import glob

files = glob.glob('/YOUR/PATH/*')
for f in files:
    os.remove(f)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #contents #directory #python
ADD COMMENT
Topic
Name
5+3 =