SyntaxFix
Write A Post
Hire A Developer
Questions
os.remove doesn't resolve unix-style patterns. If you are on a unix-like system you can:
os.system('rm '+test)
Else you can:
import glob, os test = '/path/*' r = glob.glob(test) for i in r: os.remove(i)