code: def DeregisterPlugin(cls, plugin_class):
      
      name = getattr(
          plugin_class, 'ARTIFACT_DEFINITION_NAME', plugin_class.__name__)
      name = name.lower()
      if name not in cls._plugins:
        raise KeyError(
            'Artifact plugin class not set for name: {0:s}.'.format(name))
  
      del cls._plugins[name]
  
      if name in cls._file_system_plugins:
        del cls._file_system_plugins[name]
  
      if name in cls._knowledge_base_plugins:
        del cls._knowledge_base_plugins[name]
  
      if name in cls._windows_registry_plugins:
        del cls._windows_registry_plugins[name]
docs: Deregisters an preprocess plugin class.
  
      Args:
        plugin_class (type): preprocess plugin class.
  
      Raises:
        KeyError: if plugin class is not set for the corresponding name.
        TypeError: if the source type of the plugin class is not supported.