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 UnauthorizedClientException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter accountId : The Amazon Chime account ID.

Parameter roomId : The chat room ID.

Implementation

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