delete file from python cgi

Gerhard Häring gh at ghaering.de
Thu Jul 10 11:41:39 EDT 2003


lamar_air wrote:
> I have a python script and i want to delete a file on my computer
> c:\....\...\.. .txt what's the script to do this?  I know how to write
> to files but i also need to know how to delete a file.

os.unlink() or os.remove(). They're the same.

-- Gerhard





More information about the Python-list mailing list