code: def remove_if_exist(path):  # pragma: no cover
      
      if os.path.exists(path):
          if os.path.isdir(path):
              shutil.rmtree(path)
              return True
          elif os.path.isfile(path):
              os.remove(path)
              return True
      return False
docs: Delete a file or a directory recursively if it exists, else no exception is raised