code: def safe_rmtree(directory):
    
    if os.path.islink(directory):
      safe_delete(directory)
    else:
      shutil.rmtree(directory, ignore_errors=True)
docs: Delete a directory if it's present. If it's not present, no-op.
  
    Note that if the directory argument is a symlink, only the symlink will
    be deleted.
  
    :API: public