DELETE Module

The DELETE module allows for the deletion of a specified folder. This module is useful for removing folders created by previous modules that are no longer required for further processing.

Warning

Specified folders will be deleted regardless of whether the module execution was successful. You can specify any folder in this module, even if it is not part of img2radiomics. Please exercise caution when using this option.

The DELETE module can be used with the following options:

  • verbose: Enable or disable verbose mode.

  • timer: Enable or disable the timer to record execution time.

  • log: Specify the path to a file for saving logs.

  • folder: Specify the path to the folder to be deleted.

Here is an example of how to use the DELETE module:

DELETE:
{
    folder: /path/to/NIFTI_folder  # Deletes NIFTI_folder, e.g., after creating NIFTI_RESAMPLED_folder with the RESAMPLING module
    log: /path/to/logs/delete.log
}
delete_folder.delete_folder(path)[source]
delete_folder.main(argv)[source]