code: def removeFileSafely(filename,clobber=True):
      
      if filename is not None and filename.strip() != '':
          if os.path.exists(filename) and clobber: os.remove(filename)
docs: Delete the file specified, but only if it exists and clobber is True.