deleteUser method

Future<void> deleteUser({
  1. required String applicationId,
  2. required String userId,
})

Deletes a user by email id.

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

Parameter applicationId : The identifier of the application from which the user is being deleted.

Parameter userId : The user email being deleted.

Implementation

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