Removes all the commerce warehouses where groupId = &#63; and primary = &#63; from the database.

@param groupId the group ID
@param primary the primary
779214
@Override
	public void removeByG_P(long groupId, boolean primary) {
		for (CommerceWarehouse commerceWarehouse : findByG_P(groupId, primary,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
251097
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceTaxMethod commerceTaxMethod : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxMethod);
		}
	}
1186558
@Override
	public void removeByUuid_C(String uuid, long companyId) {
		for (CommerceOrder commerceOrder : findByUuid_C(uuid, companyId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
1260885
@Override
	public void removeByGroupId(long groupId) {
		for (CommercePaymentMethodGroupRel commercePaymentMethodGroupRel : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePaymentMethodGroupRel);
		}
	}
359245
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceCurrency commerceCurrency : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCurrency);
		}
	}
537788
@Override
	public void removeByGroupId(long groupId) {
		for (CommercePriceEntry commercePriceEntry : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceEntry);
		}
	}
1254490
@Override
	public void removeByG_A_C(long groupId, boolean active,
		long commerceCountryId) {
		for (CommerceWarehouse commerceWarehouse : findByG_A_C(groupId, active,
				commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
993068
@Override
	public CommerceDiscount removeByUUID_G(String uuid, long groupId)
		throws NoSuchDiscountException {
		CommerceDiscount commerceDiscount = findByUUID_G(uuid, groupId);

		return remove(commerceDiscount);
	}
370028
@Override
	public List<CommerceDiscount> filterFindByGroupId(long groupId) {
		return filterFindByGroupId(groupId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
537427
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceOrder commerceOrder : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
725631
@Override
	public void removeByCompanyId(long companyId) {
		for (CommercePriceEntry commercePriceEntry : findByCompanyId(
				companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceEntry);
		}
	}
1158280
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceWarehouse commerceWarehouse : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWarehouse);
		}
	}
755300
@Override
	public void removeByG_A(long groupId, boolean active) {
		for (CommerceCountry commerceCountry : findByG_A(groupId, active,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
860018
@Override
	public void removeByCPInstanceId(long CPInstanceId) {
		for (CommerceOrderItem commerceOrderItem : findByCPInstanceId(
				CPInstanceId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderItem);
		}
	}
1323993
public void removeCorporateGroupId(final String organizationId, final String corporateGroupId) {
        final DbOrganization dbOrganization = getOrganization(organizationId);

        if(dbOrganization.getCorporateGroupIdPrefixes().contains(corporateGroupId)){
            dbOrganization.getCorporateGroupIdPrefixes().remove(corporateGroupId);
            repositoryHandler.store(dbOrganization);
        }

        repositoryHandler.removeModulesOrganization(corporateGroupId, dbOrganization);
    }
645156
private void removeAllRelatedFromCache(String groupId)
   {
      cache.remove(CacheHandler.GROUP_PREFIX + groupId, CacheType.MEMBERSHIP);
   }
1185765
@Override
	public void removeByGroupId(long groupId) {
		for (CPMeasurementUnit cpMeasurementUnit : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpMeasurementUnit);
		}
	}