delete_all_files#

pyCGM2.Utils.files.delete_all_files(root_dir: str, extension: str, verbose: bool = True) → None#

Delete all .h5 files found in a directory and all its subdirectories, with optional logging.

Parameters:
  • root_dir (str) – Root directory to search recursively.

  • verbose (bool, optional) – If True, print a log message for each deleted file.