code: def remove_if_exists(filename):
      
      try:
          os.unlink(filename)
      except OSError as ex:
          if ex.errno != errno.ENOENT:
              raise
docs: Remove file.
  
      This is like :func:`os.remove` (or :func:`os.unlink`), except that no
      error is raised if the file does not exist.