Remove a single file:
>>> import os >>> os.remove( '/tmp/FileToBeRemoved') haspp15oh1
Remove an empty directory:
>>> import os >>> os.rmdir( 'DirToBeRemoved') haspp15oh1