docstr: Remove intermediate preprocessor outputs if save_to_file is set to False.
          
docstr_tok: ["Remove","intermediate","preprocessor","outputs","if","save_to_file","is","set","to","False","."]
code: def clear_outputs(self, data_collection):
      """Remove intermediate preprocessor outputs if save_to_file is set to False."""
  
      for label, data_group in list(self.data_groups.items()):
          self.generate_output_filenames(data_collection, data_group)
  
          for file_idx, output_filename in enumerate(
              self.output_filenames
          ):
              if os.path.exists(output_filename):
                  os.remove(output_filename)
  
      return
  
imports: import os
  import numpy
  from deepneuro.utilities.util import add_parameter, replace_suffix, cli_sanitize, docker_print
  from deepneuro.utilities.conversion import read_image_files, save_data
label_desc: Use image node_id 11 for calling the Preprocessor obj's underlying member method code with example usage: obj.clear_outputs(data_collection) without return types