xboxscene.org forums

Author Topic: How To Delete File With Python?  (Read 64 times)

Affini

  • Archived User
  • Jr. Member
  • *
  • Posts: 61
How To Delete File With Python?
« on: March 29, 2006, 12:24:00 PM »

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!
Logged

Rockstarr

  • Archived User
  • Jr. Member
  • *
  • Posts: 62
How To Delete File With Python?
« Reply #1 on: March 29, 2006, 05:08:00 PM »

Hi.

Did you do "import os"?
Whats the Error Message?
Logged