deleteChannel method

Future<void> deleteChannel({
  1. required String channelName,
})

Deletes the specified channel.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException.

Parameter channelName : The name of the channel to delete.

Implementation

Future<void> deleteChannel({
  required String channelName,
}) async {
  ArgumentError.checkNotNull(channelName, 'channelName');
  _s.validateStringLength(
    'channelName',
    channelName,
    1,
    128,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/channels/${Uri.encodeComponent(channelName)}',
    exceptionFnMap: _exceptionFns,
  );
}