Deletes the cp definition from the database. Also notifies the appropriate model listeners.

@param cpDefinition the cp definition
@return the cp definition that was removed
@throws PortalException
335343
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPDefinition deleteCPDefinition(CPDefinition cpDefinition)
		throws PortalException {
		return cpDefinitionPersistence.remove(cpDefinition);
	}
1057831
@Override
	public void removeByC_COC(long CPDefinitionId, long CPOptionCategoryId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByC_COC(
				CPDefinitionId, CPOptionCategoryId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
639344
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscount deleteCommerceDiscount(
		CommerceDiscount commerceDiscount) throws PortalException {
		return commerceDiscountPersistence.remove(commerceDiscount);
	}
1021708
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceRegion deleteCommerceRegion(CommerceRegion commerceRegion)
		throws PortalException {
		return commerceRegionPersistence.remove(commerceRegion);
	}
3391
@Override
	public List<CPDefinitionGroupedEntry> findByCPDefinitionId(
		long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
587951
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionLocalization cpDefinitionLocalization : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLocalization);
		}
	}
401396
public static CPInstance removeByC_C(long CPDefinitionId,
		String CPInstanceUuid)
		throws com.liferay.commerce.product.exception.NoSuchCPInstanceException {
		return getPersistence().removeByC_C(CPDefinitionId, CPInstanceUuid);
	}
680278
public static com.liferay.commerce.product.model.CPSpecificationOption deleteCPSpecificationOption(
		com.liferay.commerce.product.model.CPSpecificationOption cpSpecificationOption)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCPSpecificationOption(cpSpecificationOption);
	}
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);
	}
548881
@Override
	public List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId) {
		return findByCPDefinitionId(CPDefinitionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
296132
@Override
	public CPDefinitionOptionRel removeByC_C(long CPDefinitionId,
		long CPOptionId) throws NoSuchCPDefinitionOptionRelException {
		CPDefinitionOptionRel cpDefinitionOptionRel = findByC_C(CPDefinitionId,
				CPOptionId);

		return remove(cpDefinitionOptionRel);
	}
167742
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionGroupedEntry cpDefinitionGroupedEntry : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionGroupedEntry);
		}
	}
572523
public static com.liferay.commerce.model.CPDefinitionInventory createCPDefinitionInventory(
		long CPDefinitionInventoryId) {
		return getService().createCPDefinitionInventory(CPDefinitionInventoryId);
	}
1054746
@Override
	public void clearCache(CPDefinitionOptionRel cpDefinitionOptionRel) {
		entityCache.removeResult(CPDefinitionOptionRelModelImpl.ENTITY_CACHE_ENABLED,
			CPDefinitionOptionRelImpl.class,
			cpDefinitionOptionRel.getPrimaryKey());

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

		clearUniqueFindersCache((CPDefinitionOptionRelModelImpl)cpDefinitionOptionRel,
			true);
	}
73798
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPDAvailabilityEstimate deleteCPDAvailabilityEstimate(
		CPDAvailabilityEstimate cpdAvailabilityEstimate) {
		return cpdAvailabilityEstimatePersistence.remove(cpdAvailabilityEstimate);
	}
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);
		}
	}
460934
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPOption deleteCPOption(CPOption cpOption) throws PortalException {
		return cpOptionPersistence.remove(cpOption);
	}