deleteMembership method

Future<void> deleteMembership({
  1. required String membershipIdentifier,
})

Deletes a specified membership. All resources under a membership must be deleted.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter membershipIdentifier : The identifier for a membership resource.

Implementation

Future<void> deleteMembership({
  required String membershipIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/memberships/${Uri.encodeComponent(membershipIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
}