Delete a message
Deletes a specific message from a channel.
HTTP request
Note: If you are using the in-app channel in Delight AI agent, the endpoint for your API request should start with
https://api-{application_id}.svc.delight.ai/v3instead ofhttps://api-{application_id}.sendbird.com/v3. For more details, refer to our Delight AI agent guide.
Parameters
The following table lists the parameters that this action supports.
Parameters
| Required | Type | Description |
|---|---|---|
channel_type | string | Specifies the type of the channel. Acceptable values are open_channels and group_channels. |
channel_url | string | Specifies the URL of the target channel. |
message_id | long | Specifies the unique ID of the message to delete. |
| Optional | Type | Description |
|---|---|---|
delete_files | boolean | Determines whether to delete the files associated with the message. If set to |
Response
If successful, this action returns an empty response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.