Class ByProjectKeyAssociateRolesKeyByKeyDelete

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

Deleting an AssociateRole generates the AssociateRoleDeleted Message. An AssociateRole can only be deleted if it is not assigned to any Associates.



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