Class ByProjectKeyProductSelectionsKeyByKeyDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyProductSelectionsKeyByKeyDelete,ProductSelection>
com.commercetools.api.client.ByProjectKeyProductSelectionsKeyByKeyDelete
All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyProductSelectionsKeyByKeyDelete,ProductSelection>, ConflictingTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyProductSelectionsKeyByKeyDelete>, ErrorableTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, ExpandableTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, VersionedTrait<ByProjectKeyProductSelectionsKeyByKeyDelete>, io.vrap.rmf.base.client.ClientRequestCommand<ProductSelection>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<ProductSelection>, 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()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()