code: def cleanup_mprocess(config_path, cfg):
      
      for key in ('keyFile', 'logPath', 'dbpath'):
          remove_path(cfg.get(key, None))
      isinstance(config_path, str) and os.path.exists(config_path) and remove_path(config_path)
docs: remove all process's stuff
      Args:
         config_path - process's options file
         cfg - process's config