Developers » API methods » Messages » messages.delete
Deletes one or more messages.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
This method can be called with a community token. Access rights required: messages.
message_idsMessage IDs.
list of comma-separated positive numbers, the maximum number of elements allowed is 1000
spam1 to mark message as spam.
flag, either 1 or 0
group_idgroup ID (for community messages with a user access token).
positive number
delete_for_all1 to delete message for recipient (in 24 hours from the sending time).
flag, either 1 or 0, default
Returns 1.
924Can't delete this message for everybody
Global errors can occur while running. See their descriptions on this page.