def safe_rmtree(directory):
  if os.path.exists(directory):
    shutil.rmtree(directory, True)
Delete a directory if it's present. If it's not present, no-op.
dataset/ETHPy150Open pantsbuild/pex/pex/common.py/safe_rmtree