Class ByProjectKeyDiscountGroupsByIDDelete

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyDiscountGroupsByIDDelete>, Deprecatable200Trait<ByProjectKeyDiscountGroupsByIDDelete>, ErrorableTrait<ByProjectKeyDiscountGroupsByIDDelete>, ExpandableTrait<ByProjectKeyDiscountGroupsByIDDelete>, VersionedTrait<ByProjectKeyDiscountGroupsByIDDelete>, ClientRequestCommand<DiscountGroup>, CreateHttpRequestCommand, HttpRequestCommand<DiscountGroup>, RequestCommand<DiscountGroup>

Deletes a DiscountGroup in the Project. This request generates the DiscountGroupDeleted Message.

If the DiscountGroup is referenced by a CartDiscount, a ReferenceExists error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.discount_group.DiscountGroup>> result = apiRoot
            .withProjectKey("{projectKey}")
            .discountGroups()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()