Skip to content
Download Beeper

Delete a message

DELETE/v1/chats/{chatID}/messages/{messageID}

Delete a message by final message ID. Pending message IDs are not accepted because messages cannot be deleted while sending.

Path ParametersExpand Collapse
chatID: string

Chat ID. Input routes also accept the local chat ID from this installation when available.

messageID: string

Message ID.

Query ParametersExpand Collapse
forEveryone: optional boolean

True to request deletion for everyone when the network supports it; false to delete only for the authenticated user when supported.

Delete a message

curl http://localhost:23373/v1/chats/$CHAT_ID/messages/$MESSAGE_ID \
    -X DELETE \
    -H "Authorization: Bearer $BEEPER_ACCESS_TOKEN"
Returns Examples