Chime / Client / delete_channel_message
delete_channel_message#
- Chime.Client.delete_channel_message(**kwargs)#
Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by
UpdateChannelMessage.Note
The
x-amz-chime-bearerrequest header is mandatory. Use theAppInstanceUserArnof the user that makes the API call as the value in the header.See also: AWS API Documentation
Request Syntax
response = client.delete_channel_message( ChannelArn='string', MessageId='string', ChimeBearer='string' )
- Parameters:
ChannelArn (string) –
[REQUIRED]
The ARN of the channel.
MessageId (string) –
[REQUIRED]
The ID of the message being deleted.
ChimeBearer (string) – The
AppInstanceUserArnof the user that makes the API call.
- Returns:
None
Exceptions
Chime.Client.exceptions.BadRequestExceptionChime.Client.exceptions.ForbiddenExceptionChime.Client.exceptions.UnauthorizedClientExceptionChime.Client.exceptions.ThrottledClientExceptionChime.Client.exceptions.ServiceUnavailableExceptionChime.Client.exceptions.ServiceFailureException