code: public void removeTaggedComponent(final WComponent component) {
  		TemplateModel model = getOrCreateComponentModel();
  		if (model.taggedComponents != null) {
  			// Find tag
  			String tag = null;
  			for (Map.Entry<String, WComponent> entry : model.taggedComponents.entrySet()) {
  				if (entry.getValue().equals(component)) {
  					tag = entry.getKey();
  					break;
  				}
  			}
  			if (tag != null) {
  				removeTaggedComponent(tag);
  			}
  		}
  	}
docs: Remove a tagged component via the component instance.
  
  @param component the tagged component to remove