Class ByProjectKeyRecurrencePoliciesKeyByKeyDelete

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyRecurrencePoliciesKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyRecurrencePoliciesKeyByKeyDelete>, ErrorableTrait<ByProjectKeyRecurrencePoliciesKeyByKeyDelete>, ExpandableTrait<ByProjectKeyRecurrencePoliciesKeyByKeyDelete>, VersionedTrait<ByProjectKeyRecurrencePoliciesKeyByKeyDelete>, ClientRequestCommand<RecurrencePolicy>, CreateHttpRequestCommand, HttpRequestCommand<RecurrencePolicy>, RequestCommand<RecurrencePolicy>

Deletes a Recurrence Policy in the Project.

A Recurrence Policy can be deleted only if it is not referenced by any Embedded Price, Standalone Price, or (Custom) Line Item, otherwise a ReferenceExists error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.recurrence_policy.RecurrencePolicy>> result = apiRoot
            .withProjectKey("{projectKey}")
            .recurrencePolicies()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()