Removes all the commerce tax fixed rate address rels where CPTaxCategoryId = &#63; from the database.

@param CPTaxCategoryId the cp tax category ID
975780
@Override
	public void removeByCPTaxCategoryId(long CPTaxCategoryId) {
		for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : findByCPTaxCategoryId(
				CPTaxCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxFixedRateAddressRel);
		}
	}
182472
def __remove_category(self, id):
        """"""

        affected_query = """
            SELECT id
              FROM facts
             WHERE activity_id in (SELECT id FROM activities where category_id=?)
        """
        affected_ids = [res[0] for res in self.fetchall(affected_query, (id,))]

        update = "update activities set category_id = -1 where category_id = ?"
        self.execute(update, (id, ))

        self.execute("delete from categories where id = ?", (id, ))

        self.__remove_index(affected_ids)
866308
@Override
	public void removeByCommerceCountryId(long commerceCountryId) {
		for (CommerceAddress commerceAddress : findByCommerceCountryId(
				commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAddress);
		}
	}
979979
@Override
	public void removeByCN_CPK(long classNameId, long classPK) {
		for (CommerceDiscountRel commerceDiscountRel : findByCN_CPK(
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceDiscountRel);
		}
	}
36300
private function removeDefaultCategories($categoryIds)
    {
        $returnArray = [];
        $basicCategoryIds = [
            1,
            $this->storeManager->getStore()->getRootCategoryId(),
        ];
        foreach ($categoryIds as $categoryId) {
            if (!in_array($categoryId, $basicCategoryIds)) {
                $returnArray[] = $categoryId;
            }
        }

        return $returnArray;
    }
927722
@Override
	public void removeByCPTaxCategoryId(long CPTaxCategoryId) {
		for (CPDefinition cpDefinition : findByCPTaxCategoryId(
				CPTaxCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinition);
		}
	}
538510
@Override
	public void removeByCommerceAccountId(long commerceAccountId) {
		for (CommerceAccountOrganizationRel commerceAccountOrganizationRel : findByCommerceAccountId(
				commerceAccountId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAccountOrganizationRel);
		}
	}
1126315
protected function deleteLinked($category_id)
    {
        $this->db->delete('category_translation', array('category_id' => $category_id));
        $this->db->delete('file', array('entity' => 'category', 'entity_id' => $category_id));
        $this->db->delete('alias', array('entity' => 'category', 'entity_id' => $category_id));
    }
204339
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPInstance cpInstance : findByCPDefinitionId(CPDefinitionId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpInstance);
		}
	}
851860
@Override
	public void removeByCPD_T(long CPDefinitionId, String type) {
		for (CPDefinitionLink cpDefinitionLink : findByCPD_T(CPDefinitionId,
				type, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLink);
		}
	}
1297621
@Override
	@Transactional(enabled = false)
	public CPTaxCategory createCPTaxCategory(long CPTaxCategoryId) {
		return cpTaxCategoryPersistence.create(CPTaxCategoryId);
	}
711145
public function removeCategorie(\Haven\CoreBundle\Entity\Category $categories)
    {
        $this->categories->removeElement($categories);
    }
1273342
public void setCommerceTaxFixedRateAddressRelService(
		com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelService commerceTaxFixedRateAddressRelService) {
		this.commerceTaxFixedRateAddressRelService = commerceTaxFixedRateAddressRelService;
	}
1251433
@Override
	public void clearCache(CommerceTaxFixedRate commerceTaxFixedRate) {
		entityCache.removeResult(CommerceTaxFixedRateModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTaxFixedRateImpl.class, commerceTaxFixedRate.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CommerceTaxFixedRateModelImpl)commerceTaxFixedRate,
			true);
	}
858709
@Override
	public void removeByAssetCategoryId(long assetCategoryId) {
		for (CPRuleAssetCategoryRel cpRuleAssetCategoryRel : findByAssetCategoryId(
				assetCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpRuleAssetCategoryRel);
		}
	}
563002
public function removeCategory(\Hexmedia\ContentBundle\Entity\Category $category)
    {
        $this->categories->removeElement($category);
    }
1290269
@Override
	public void removeByCompanyId(long companyId) {
		for (CPDefinitionOptionRel cpDefinitionOptionRel : findByCompanyId(
				companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionOptionRel);
		}
	}