code: def _safe_rmtree(dir_: str):
      
      try:
          rmtree(dir_)
      except OSError:
          logging.warning('\t\t Skipping %s due to OSError', dir_)
      else:
          logging.debug('\t\t Deleted %s', dir_)
docs: Wrap ``shutil.rmtree`` to inform user about (un)success.