code: def remove(self, component):
          # type: (str) -> None
          
          with self.__lock:
              # Find its factory
              factory = self.__names.pop(component)
              components = self.__queue[factory]
  
              # Clear the queue
              del components[component]
              if not components:
                  # No more component for this factory
                  del self.__queue[factory]
  
              # Kill the component
              try:
                  with use_ipopo(self.__context) as ipopo:
                      # Try to instantiate the component right now
                      ipopo.kill(component)
              except (BundleException, ValueError):
                  # iPOPO not yet started or component not instantiated
                  pass
docs: Kills/Removes the component with the given name
  
          :param component: A component name
          :raise KeyError: Unknown component