code: def clean(self):
          
          #TODO: add cleaning of mask files, *if* created ...
          for f in self.catalog_names:
              if 'match' in f:
                  if os.path.exists(self.catalog_names[f]):
                      log.info('Deleting intermediate match file: %s'%
                                  self.catalog_names[f])
                      os.remove(self.catalog_names[f])
              else:
                  for extn in f:
                      if os.path.exists(extn):
                          log.info('Deleting intermediate catalog: %d'%extn)
                          os.remove(extn)
docs: Remove intermediate files created.