code: def rm(path):
      
      if path and os.path.exists(path):
          if os.path.isdir(path):
              shutil.rmtree(path)
          else:
              os.remove(path)
docs: Equivalent to rm -rf.
  
      Make sure ``path`` doesn't exist after this call.  If it's a dir,
      shutil.rmtree(); if it's a file, os.remove(); if it doesn't exist,
      ignore.
  
      Args:
          path (str): the path to nuke.