import glob, os test = '/path/*' r = glob.glob(test) for i in r: os.remove(i)
http://stackoverflow.com/questions/1039711/remove-all-files-in-a-directory#answer-1039747
Recommended Posts