Class ByProjectKeyInStoreKeyByStoreKeyCategoriesByIDDelete

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

Deletes a Category by its id in the specified Store.

To delete a global Category, use the Delete Category by ID 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()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()