Class ByProjectKeyProductSelectionsByIDDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyProductSelectionsByIDDelete,ProductSelection>, ConflictingTrait<ByProjectKeyProductSelectionsByIDDelete>, Deprecatable200Trait<ByProjectKeyProductSelectionsByIDDelete>, ErrorableTrait<ByProjectKeyProductSelectionsByIDDelete>, ExpandableTrait<ByProjectKeyProductSelectionsByIDDelete>, VersionedTrait<ByProjectKeyProductSelectionsByIDDelete>, ClientRequestCommand<ProductSelection>, CreateHttpRequestCommand, HttpRequestCommand<ProductSelection>, RequestCommand<ProductSelection>

Deletion will only succeed if the Product Selection is not assigned to any Store.



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