Deletes the c product from the database. Also notifies the appropriate model listeners.

@param cProduct the c product
@return the c product that was removed
358109
@Indexable(type = IndexableType.DELETE)
	@Override
	public CProduct deleteCProduct(CProduct cProduct) {
		return cProductPersistence.remove(cProduct);
	}
290106
@Override
	public void removeByCProductId(long CProductId) {
		for (CPDefinitionLink cpDefinitionLink : findByCProductId(CProductId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionLink);
		}
	}
840644
public Completable removeProduct(Product product) {
    List<Product> updatedShoppingCart = new ArrayList<>();
    updatedShoppingCart.addAll(itemsInShoppingCart.getValue());
    updatedShoppingCart.remove(product);
    itemsInShoppingCart.onNext(updatedShoppingCart);
    return Completable.complete();
  }
848340
@Override
	public void removeByG_C_C(long groupId, long classNameId, long classPK) {
		for (CommerceAddress commerceAddress : findByG_C_C(groupId,
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAddress);
		}
	}
296132
@Override
	public CPDefinitionOptionRel removeByC_C(long CPDefinitionId,
		long CPOptionId) throws NoSuchCPDefinitionOptionRelException {
		CPDefinitionOptionRel cpDefinitionOptionRel = findByC_C(CPDefinitionId,
				CPOptionId);

		return remove(cpDefinitionOptionRel);
	}
1349752
public function deleteFeatureProductValue(FeatureProductDeleteEvent $event)
    {
        FeatureProductQuery::create()
            ->filterByProductId($event->getProductId())
            ->filterByFeatureId($event->getFeatureId())
            ->delete()
        ;
    }
564530
@Override
	public com.liferay.commerce.product.model.CPOption deleteCPOption(
		com.liferay.commerce.product.model.CPOption cpOption)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _cpOptionLocalService.deleteCPOption(cpOption);
	}
955194
@Override
	public void removeByCProductId(long CProductId) {
		for (CommerceOrderItem commerceOrderItem : findByCProductId(
				CProductId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderItem);
		}
	}
612183
public static com.liferay.commerce.model.CPDAvailabilityEstimate deleteCPDAvailabilityEstimate(
		com.liferay.commerce.model.CPDAvailabilityEstimate cpdAvailabilityEstimate) {
		return getService()
				   .deleteCPDAvailabilityEstimate(cpdAvailabilityEstimate);
	}
614353
@Indexable(type = IndexableType.DELETE)
	@Override
	public CPDefinitionInventory deleteCPDefinitionInventory(
		CPDefinitionInventory cpDefinitionInventory) {
		return cpDefinitionInventoryPersistence.remove(cpDefinitionInventory);
	}
726552
@Override
	public List<CProduct> getCProductsByUuidAndCompanyId(String uuid,
		long companyId) {
		return cProductPersistence.findByUuid_C(uuid, companyId);
	}
39714
@Override
	public void clearCache(CProduct cProduct) {
		entityCache.removeResult(CProductModelImpl.ENTITY_CACHE_ENABLED,
			CProductImpl.class, cProduct.getPrimaryKey());

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

		clearUniqueFindersCache((CProductModelImpl)cProduct, true);
	}
1106508
public static com.liferay.commerce.product.model.CPDefinitionOptionRel deleteCPDefinitionOptionRel(
		com.liferay.commerce.product.model.CPDefinitionOptionRel cpDefinitionOptionRel)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCPDefinitionOptionRel(cpDefinitionOptionRel);
	}
617725
@Override
	public void removeByC_CSO(long CPDefinitionId, long CPSpecificationOptionId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByC_CSO(
				CPDefinitionId, CPSpecificationOptionId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
245817
protected function deleteProduct()
    {
        $this->controlAccess('product_delete');

        if ($this->product->delete($this->data_product['product_id'])) {
            $this->redirect('admin/content/product', $this->text('Product has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Product has not been deleted'), 'warning');
    }
694611
public static com.liferay.commerce.model.CommerceWarehouse deleteCommerceWarehouse(
		com.liferay.commerce.model.CommerceWarehouse commerceWarehouse) {
		return getService().deleteCommerceWarehouse(commerceWarehouse);
	}
332168
public static CPDAvailabilityEstimate removeByCProductId(long CProductId)
		throws com.liferay.commerce.exception.NoSuchCPDAvailabilityEstimateException {
		return getPersistence().removeByCProductId(CProductId);
	}