Class ByProjectKeyProductSelectionsKeyByKeyDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyProductSelectionsKeyByKeyDelete,ProductSelection>, ConflictingTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyProductSelectionsKeyByKeyDelete>, ErrorableTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, ExpandableTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, VersionedTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, 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()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()