How To Delete File with Python?
#1
i've tried os.unlink(file) and also os.system('rm '+file)

neither seem to work.

i need to delete plain ol text files.

thanks!
I'm not an expert but I play one at work.
Reply
#2
hi.

did you do "import os"?
whats the error message?
Reply
#3
(rockstarr @ mar. 29 2006,18:12 Wrote:hi.

did you do "import os"?
whats the error message?
of course Wink

i figured it out... it is working now.

thanks
I'm not an expert but I play one at work.
Reply

Logout Mark Read Team Forum Stats Members Help
How To Delete File with Python?0