Class ByProjectKeyProductSelectionsByIDDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<ByProjectKeyProductSelectionsByIDDelete,ProductSelection>
com.commercetools.api.client.ByProjectKeyProductSelectionsByIDDelete
All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyProductSelectionsByIDDelete,ProductSelection>, ConflictingTrait<ByProjectKeyProductSelectionsByIDDelete>, Deprecatable200Trait<ByProjectKeyProductSelectionsByIDDelete>, ErrorableTrait<ByProjectKeyProductSelectionsByIDDelete>, ExpandableTrait<ByProjectKeyProductSelectionsByIDDelete>, VersionedTrait<ByProjectKeyProductSelectionsByIDDelete>, io.vrap.rmf.base.client.ClientRequestCommand<ProductSelection>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.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()