code: def rm_rf(path, dry_run=False):
      
      log.info("removing %s" % path)
      if dry_run:
          return
      try:
          if os.path.isdir(path) and not os.path.islink(path):
              shutil.rmtree(path)
          else:
              os.remove(path)
      except OSError:
          pass
docs: Remove a file or directory tree.
  
      Won't throw an exception, even if the removal fails.