Remove the category from the search object.<p>

@param categoryPath the category path as id
517288
public void removeCategory(String categoryPath) {

        m_searchObject.removeCategory(categoryPath);
        m_searchObjectChanged = true;
        ValueChangeEvent.fire(this, m_searchObject);
    }
1265560
public static com.liferay.commerce.product.model.CPTaxCategory deleteCPTaxCategory(
		com.liferay.commerce.product.model.CPTaxCategory cpTaxCategory)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCPTaxCategory(cpTaxCategory);
	}
1164618
def remove_category(*categories)
      categories.each do |category|
        direct_category_items.where(category_id: category).destroy_all
      end
      @categories = nil
    end
346591
protected function removeCategoryArticles($articles, $categoryID)
    {
        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $prodIds = implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($articles));

        $delete = "delete from oxobject2category ";
        $where = $this->getRemoveCategoryArticlesQueryFilter($categoryID, $prodIds);


        $sQ = $delete . $where;
        $db->execute($sQ);

        // updating oxtime values
        $this->_updateOxTime($prodIds);
    }
602879
protected void deletePath(IndexTreePath<E> deletionPath) {
    N leaf = getNode(deletionPath.getParentPath().getEntry());
    int index = deletionPath.getIndex();

    // delete o
    E entry = leaf.getEntry(index);
    leaf.deleteEntry(index);
    writeNode(leaf);

    // condense the tree
    Stack<N> stack = new Stack<>();
    condenseTree(deletionPath.getParentPath(), stack);

    // reinsert underflow nodes
    while(!stack.empty()) {
      N node = stack.pop();
      if(node.isLeaf()) {
        for(int i = 0; i < node.getNumEntries(); i++) {
          settings.getOverflowTreatment().reinitialize(); // Intended?
          this.insertLeafEntry(node.getEntry(i));
        }
      }
      else {
        for(int i = 0; i < node.getNumEntries(); i++) {
          stack.push(getNode(node.getEntry(i)));
        }
      }
      deleteNode(node);
    }
    postDelete(entry);

    doExtraIntegrityChecks();
  }
43383
def remove_from_category(self, category):
        
        ctype = ContentType.objects.get_for_model(self)
        self.categories.model.objects.filter(category=category, content_type=ctype, object_id=self.id).delete()
927722
@Override
	public void removeByCPTaxCategoryId(long CPTaxCategoryId) {
		for (CPDefinition cpDefinition : findByCPTaxCategoryId(
				CPTaxCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinition);
		}
	}
360745
public static CPOptionCategory removeByG_K(long groupId, String key)
		throws com.liferay.commerce.product.exception.NoSuchCPOptionCategoryException {
		return getPersistence().removeByG_K(groupId, key);
	}
891117
def delete_category(self, category):
        """"""
        # Remove mapping of metrics-to-category
        category_key = self._category_key(category)
        self.r.delete(category_key)

        # Remove category from Set
        self.r.srem(self._categories_key, category)
1089324
public function removeCategory(\Haven\CoreBundle\Entity\Category $categories)
    {
        $this->categories->removeElement($categories);
    }
566891
public void deleteCategory(final CmsUUID id) {

        CmsDeleteWarningDialog deleteWarningDialog = new CmsDeleteWarningDialog(id) {

            @Override
            protected void onAfterDeletion() {

                CmsSitemapView.getInstance().getController().loadCategories(true, null);
            }
        };
        deleteWarningDialog.loadAndShow(null);
    }
1131782
@Override
	public void removeByCPOptionCategoryId(long CPOptionCategoryId) {
		for (CPSpecificationOption cpSpecificationOption : findByCPOptionCategoryId(
				CPOptionCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpSpecificationOption);
		}
	}
940117
private void deselectChildren(CmsTreeItem item) {

        for (String childId : m_childrens.get(item.getId())) {
            CmsTreeItem child = m_categories.get(childId);
            deselectChildren(child);
            child.getCheckBox().setChecked(false);
            if (m_selectedCategories.contains(childId)) {
                m_selectedCategories.remove(childId);
            }
        }
    }
200629
protected CmsTreeItem searchTreeItem(CmsList<? extends I_CmsListItem> list, String categoryPath) {

        CmsTreeItem resultItem = (CmsTreeItem)list.getItem(categoryPath);
        // item is not in this tree level
        if (resultItem == null) {
            // if list is not empty
            for (int i = 0; i < list.getWidgetCount(); i++) {
                CmsTreeItem listItem = (CmsTreeItem)list.getWidget(i);
                if (listItem.getChildCount() == 0) {
                    continue;
                }
                // continue search in children
                resultItem = searchTreeItem(listItem.getChildren(), categoryPath);
                // break the search if result item is found
                if (resultItem != null) {
                    break;
                }
            }
        }
        return resultItem;
    }
858709
@Override
	public void removeByAssetCategoryId(long assetCategoryId) {
		for (CPRuleAssetCategoryRel cpRuleAssetCategoryRel : findByAssetCategoryId(
				assetCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpRuleAssetCategoryRel);
		}
	}
353325
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPTaxCategory deleteCPTaxCategory(CPTaxCategory cpTaxCategory)
		throws PortalException {
		return cpTaxCategoryPersistence.remove(cpTaxCategory);
	}
532843
public static void remove(String filePath) {
        File file = new File(filePath);
        if (file.exists() && file.isFile()) {
            file.delete();
        }
    }