Class ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete,Category>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete>, VersionedTrait<ByProjectKeyInStoreKeyByStoreKeyCategoriesKeyByKeyDelete>, ClientRequestCommand<Category>, CreateHttpRequestCommand, HttpRequestCommand<Category>, RequestCommand<Category>

Deletes a Category by its key in the specified Store.

To delete a global Category, use the Delete Category by Key endpoint.

If you do not have permissions for a Store the Category is assigned to, an Unauthorized error is returned.

If the Category does not exist in the Store, a ResourceNotFound error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.category.Category>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .categories()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()