deleteRoom method

Future<void> deleteRoom({
  1. required String accountId,
  2. required String roomId,
})

Deletes a chat room in an Amazon Chime Enterprise account.

May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter accountId : The Amazon Chime account ID.

Parameter roomId : The chat room ID.

Implementation

Future<void> deleteRoom({
  required String accountId,
  required String roomId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/accounts/${Uri.encodeComponent(accountId)}/rooms/${Uri.encodeComponent(roomId)}',
    exceptionFnMap: _exceptionFns,
  );
}