Deletes the commerce account from the database. Also notifies the appropriate model listeners.

@param commerceAccount the commerce account
@return the commerce account that was removed
@throws PortalException
494164
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceAccount deleteCommerceAccount(
		CommerceAccount commerceAccount) throws PortalException {
		return commerceAccountPersistence.remove(commerceAccount);
	}
1021708
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceRegion deleteCommerceRegion(CommerceRegion commerceRegion)
		throws PortalException {
		return commerceRegionPersistence.remove(commerceRegion);
	}
75537
public static com.liferay.commerce.model.CommerceOrderPayment deleteCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().deleteCommerceOrderPayment(commerceOrderPayment);
	}
583061
@Override
	public com.liferay.commerce.model.CommerceRegion deleteCommerceRegion(
		com.liferay.commerce.model.CommerceRegion commerceRegion)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceRegionLocalService.deleteCommerceRegion(commerceRegion);
	}
336333
public static com.liferay.commerce.account.model.CommerceAccountOrganizationRel deleteCommerceAccountOrganizationRel(
		com.liferay.commerce.account.model.CommerceAccountOrganizationRel commerceAccountOrganizationRel) {
		return getService()
				   .deleteCommerceAccountOrganizationRel(commerceAccountOrganizationRel);
	}
1267541
@Override
	public com.liferay.commerce.price.list.model.CommercePriceEntry deleteCommercePriceEntry(
		com.liferay.commerce.price.list.model.CommercePriceEntry commercePriceEntry)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commercePriceEntryLocalService.deleteCommercePriceEntry(commercePriceEntry);
	}
1268197
@Override
	public CommerceAccount removeByC_ERC(long companyId,
		String externalReferenceCode) throws NoSuchAccountException {
		CommerceAccount commerceAccount = findByC_ERC(companyId,
				externalReferenceCode);

		return remove(commerceAccount);
	}
589227
@Override
	public com.liferay.commerce.model.CommerceOrderNote deleteCommerceOrderNote(
		com.liferay.commerce.model.CommerceOrderNote commerceOrderNote) {
		return _commerceOrderNoteLocalService.deleteCommerceOrderNote(commerceOrderNote);
	}
1370877
public static com.liferay.commerce.model.CommerceAddress deleteCommerceAddress(
		com.liferay.commerce.model.CommerceAddress commerceAddress)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCommerceAddress(commerceAddress);
	}
1021804
@Override
	public void removeByC_A(long commerceCountryId, boolean active) {
		for (CommerceRegion commerceRegion : findByC_A(commerceCountryId,
				active, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceRegion);
		}
	}
205414
public static MozuUrl removeTransactionUrl(Integer accountId, String transactionId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/transactions/{transactionId}");
		formatter.formatUrl("accountId", accountId);
		formatter.formatUrl("transactionId", transactionId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
1083295
@Override
	public com.liferay.commerce.model.CommerceShippingMethod deleteCommerceShippingMethod(
		com.liferay.commerce.model.CommerceShippingMethod commerceShippingMethod)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceShippingMethodLocalService.deleteCommerceShippingMethod(commerceShippingMethod);
	}
931742
@Override
	public List<CommerceAccountUserRel> findByCommerceAccountId(
		long commerceAccountId) {
		return findByCommerceAccountId(commerceAccountId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
23499
@Override
	public void removeByCommerceAccountId(long commerceAccountId) {
		for (CommerceAccountUserRel commerceAccountUserRel : findByCommerceAccountId(
				commerceAccountId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAccountUserRel);
		}
	}
1343404
public void setCommerceAccountOrganizationRelLocalService(
		com.liferay.commerce.account.service.CommerceAccountOrganizationRelLocalService commerceAccountOrganizationRelLocalService) {
		this.commerceAccountOrganizationRelLocalService = commerceAccountOrganizationRelLocalService;
	}
741288
@Override
	public int countByCommerceAccountUserId(long commerceAccountUserId) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCEACCOUNTUSERID;

		Object[] finderArgs = new Object[] { commerceAccountUserId };

		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

		if (count == null) {
			StringBundler query = new StringBundler(2);

			query.append(_SQL_COUNT_COMMERCEACCOUNTUSERREL_WHERE);

			query.append(_FINDER_COLUMN_COMMERCEACCOUNTUSERID_COMMERCEACCOUNTUSERID_2);

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(commerceAccountUserId);

				count = (Long)q.uniqueResult();

				finderCache.putResult(finderPath, finderArgs, count);
			}
			catch (Exception e) {
				finderCache.removeResult(finderPath, finderArgs);

				throw processException(e);
			}
			finally {
				closeSession(session);
			}
		}

		return count.intValue();
	}
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);
	}