deleteChannel method
Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter channelArn :
The ARN of the channel being deleted.
Parameter chimeBearer :
The ARN of the AppInstanceUser or AppInstanceBot
that makes the API call.
Implementation
Future<void> deleteChannel({
required String channelArn,
required String chimeBearer,
}) async {
final headers = <String, String>{
'x-amz-chime-bearer': chimeBearer.toString(),
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/channels/${Uri.encodeComponent(channelArn)}',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}