Deletes the cp tax category from the database. Also notifies the appropriate model listeners.

@param cpTaxCategory the cp tax category
@return the cp tax category that was removed
@throws PortalException
353325
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPTaxCategory deleteCPTaxCategory(CPTaxCategory cpTaxCategory)
		throws PortalException {
		return cpTaxCategoryPersistence.remove(cpTaxCategory);
	}
156325
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPOptionCategory updateCPOptionCategory(
		CPOptionCategory cpOptionCategory) {
		return cpOptionCategoryPersistence.update(cpOptionCategory);
	}
559897
public static com.liferay.commerce.discount.model.CommerceDiscountRel deleteCommerceDiscountRel(
		com.liferay.commerce.discount.model.CommerceDiscountRel commerceDiscountRel)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCommerceDiscountRel(commerceDiscountRel);
	}
1042075
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscountRel deleteCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) throws PortalException {
		return commerceDiscountRelPersistence.remove(commerceDiscountRel);
	}
1021525
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPOptionValue deleteCPOptionValue(CPOptionValue cpOptionValue)
		throws PortalException {
		return cpOptionValuePersistence.remove(cpOptionValue);
	}
159312
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPRuleAssetCategoryRel deleteCPRuleAssetCategoryRel(
		CPRuleAssetCategoryRel cpRuleAssetCategoryRel) {
		return cpRuleAssetCategoryRelPersistence.remove(cpRuleAssetCategoryRel);
	}
879482
public function remove(Category $category)
    {
        $category->term->delete();
        $category->delete();

        Alert::info(__('Category was removed'));

        return redirect()->route('platform.systems.category');
    }
540931
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceOrderItem deleteCommerceOrderItem(
		CommerceOrderItem commerceOrderItem) throws PortalException {
		return commerceOrderItemPersistence.remove(commerceOrderItem);
	}
357554
@Override
	public CPOptionCategory create(long CPOptionCategoryId) {
		CPOptionCategory cpOptionCategory = new CPOptionCategoryImpl();

		cpOptionCategory.setNew(true);
		cpOptionCategory.setPrimaryKey(CPOptionCategoryId);

		String uuid = PortalUUIDUtil.generate();

		cpOptionCategory.setUuid(uuid);

		cpOptionCategory.setCompanyId(companyProvider.getCompanyId());

		return cpOptionCategory;
	}
953862
public static com.liferay.commerce.model.CPDefinitionInventory deleteCPDefinitionInventory(
		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
		return getService().deleteCPDefinitionInventory(cpDefinitionInventory);
	}
251302
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPInstance deleteCPInstance(CPInstance cpInstance)
		throws PortalException {
		return cpInstancePersistence.remove(cpInstance);
	}
971283
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPRule deleteCPRule(CPRule cpRule) throws PortalException {
		return cpRulePersistence.remove(cpRule);
	}
568366
@Override
	public void clearCache(CPTaxCategory cpTaxCategory) {
		entityCache.removeResult(CPTaxCategoryModelImpl.ENTITY_CACHE_ENABLED,
			CPTaxCategoryImpl.class, cpTaxCategory.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
931035
public void setCPTaxCategoryLocalService(
		com.liferay.commerce.product.service.CPTaxCategoryLocalService cpTaxCategoryLocalService) {
		this.cpTaxCategoryLocalService = cpTaxCategoryLocalService;
	}
52527
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceCountry deleteCommerceCountry(
		CommerceCountry commerceCountry) throws PortalException {
		return commerceCountryPersistence.remove(commerceCountry);
	}
563002
public function removeCategory(\Hexmedia\ContentBundle\Entity\Category $category)
    {
        $this->categories->removeElement($category);
    }
1021708
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceRegion deleteCommerceRegion(CommerceRegion commerceRegion)
		throws PortalException {
		return commerceRegionPersistence.remove(commerceRegion);
	}