remove_workflow_files

atomate2.common.jobs.utils.remove_workflow_files(directories, file_names, allow_zpath=True, **kwargs)[source]

Remove files from previous jobs.

For example, at the end of an MP flow, WAVECAR files are generated that take up a lot of disk space. This utility can automatically remove them following a workflow.

Parameters:
  • directories (list of str, or list of list of str) – Names of directories to clean output from. Can be a list of directories, or a list of lists.

  • file_names (list of str) – The list of file names to remove, ex. [“WAVECAR”] rather than a full path

  • allow_zpath (bool = True) – Whether to allow checking for zipped output

  • **kwargs – Other kwargs to pass to delete_files

Returns:

list[str]

Return type:

list of removed files