Developers » API methods » Messages » messages.delete
Messagesmessages.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.
Parameters
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
peer_id
int (number)
conversation_message_ids
list of comma-separated positive numbers, the maximum number of elements allowed is 100
Result
Returns 1.
Errors
924Can't delete this message for everybody
Global errors can occur while running. See their descriptions on this page.