Kills/Removes the component with the given name

        :param component: A component name
        :raise KeyError: Unknown component
171727
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
566038
public void deleteComponent(String componentName) throws IOException {
    String path = RegistryUtils.componentPath(
        user, jstormServiceClass, instanceName,
        componentName);
    registryOperations.delete(path, false);
  }
438262
def delete(self, href=None):
        
        if self.is_fake:
            return

        if href is None:
            self.collection.delete()
            return

        item = self.get(href)
        if item is None:
            raise ComponentNotFoundError(href)

        item.etesync_item.delete()
194733
def remove_widget(self):
        

        LOGGER.debug("> Removing '{0}' Component Widget.".format(self.__class__.__name__))

        self.__preferences_manager.findChild(QGridLayout, "Others_Preferences_gridLayout").removeWidget(self)
        self.TCP_Client_Ui_groupBox.setParent(None)

        return True
63031
def response(self, component_id, component=None, **kwargs):
        
        if component_id in self._responses:
            raise DuplicateComponentNameError(
                'Another response with name "{}" is already registered.'.format(
                    component_id
                )
            )
        component = component or {}
        ret = component.copy()
        # Execute all helpers from plugins
        for plugin in self._plugins:
            try:
                ret.update(plugin.response_helper(component, **kwargs) or {})
            except PluginMethodNotImplementedError:
                continue
        self._responses[component_id] = ret
        return self
1259436
public static void dissociateCSH(BaseUIComponent component) {
        if (component != null && component.hasAttribute(CSH_TARGET)) {
            CommandUtil.dissociateCommand("help", component);
            component.removeAttribute(CSH_TARGET);
        }
    }
912462
function unmountComponent(component) {
    if (options.beforeUnmount) options.beforeUnmount(component);

    var base = component.base;

    component._disable = true;

    if (component.componentWillUnmount) component.componentWillUnmount();

    component.base = null;

    // recursively tear down & recollect high-order component children:
    var inner = component._component;
    if (inner) {
      unmountComponent(inner);
    } else if (base) {
      if (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);

      component.nextBase = base;

      removeNode(base);
      collectComponent(component);

      removeChildren(base);
    }

    if (component.__ref) component.__ref(null);
  }
326934
def clear_components(self):
        

        ComponentRegistry._component_overlays = {}

        for key in self.list_components():
            self.remove_component(key)
104753
def remove_envelope(self, component=None, **kwargs):
        
        kwargs.setdefault('kind', 'envelope')
        return self.remove_component(component, **kwargs)
409500
public void removeControlComponent(IControlComponent component)
	{
		if (component.getParent() != this)
			return;

		controlComponents.remove(component);
		component.setParent(null);
	}
486277
public Component remove (Class<? extends Component> componentClass) {
		ComponentType componentType = ComponentType.getFor(componentClass);
		int componentTypeIndex = componentType.getIndex();
		
		if(components.isIndexWithinBounds(componentTypeIndex)){
			Component removeComponent = components.get(componentTypeIndex);
	
			if (removeComponent != null && removeInternal(componentClass) != null) {
				if (componentOperationHandler != null) {
					componentOperationHandler.remove(this);
				}
				else {
					notifyComponentRemoved();
				}
			}
	
			return removeComponent;
		}
		
		return null;
	}
1140667
void remove(JInternalFrame internalFrame)
    {
        Component component = frameToComponent.get(internalFrame);
        container.remove(component);
    }
197768
def removeComponent(self, index):
        """"""
        if index.row() ==  self.rowCount() -1  and self.columnCountForRow(index.row()) == 1:
            self.beginRemoveRows(QtCore.QModelIndex(), self._stim.rowCount()-1, 
                                 self._stim.rowCount()-1)
            self._stim.removeComponent(index.row(), index.column())
            self.endRemoveRows()
        else:
            self._stim.removeComponent(index.row(), index.column())

        # this could have affected the sample of this stimulus
        self.samplerateChanged.emit(self._stim.samplerate())
807053
private void close(Component component) {
	if (components.size() > 0) {
	  if (components.contains(component) == false) {
		return;
	  }

	  components.remove(component);
	  depths.remove(component);
	  getModalPanel().removeAll();
	  fireCloseActionListener(listeners.get(component));
	  listeners.remove(component);

	  if (components.size() > 0) {
		showNextComponent();
	  } else {
		restoreRootPane();
	  }
	}
  }
917685
private void hideTab(Component component) {
		if (hiddenTabs.contains(component)) {
			return;
		}
		hiddenTabs.add(component);

		int index = indexOfComponent(component);
		if (index != -1) {
			super.removeTabAt(index);
		}
		
		handleHiddenTabListTab();
	}
608645
def component_by_key(self, key):
        
        filtered = [c for c in self.components if c.key == key]
        if filtered:
            return filtered[0]
        return None
216677
private void markComponentForDeletion(String id , UIComponent component)
    {
        _componentsMarkedForDeletion.get(_deletionLevel).put(id, component);
    }