def unlink(f):
 try:
  os.unlink(f)
 except OSError as e:
  if (e.errno != errno.ENOENT):
   raise

def unlink ( f ) : try : os . unlink ( f ) except OSError as e : if ( e . errno != errno . ENOENT ) : raise
unlinks a file or directory on the target device .