How to delete a file

Delete a file


# from  w  w w .  j ava 2 s.c  o m
#!/usr/bin/env python

import os

os.remove("c:/python/test.py")




















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module