Skip to main content

Delete a Single Message

This endpoint deletes a message.

info

This operation requires authentication. The logged user must be the message sender.

info

If the message was sent less than 60 seconds before it is deleted and hidden from the thread (and the status is set to deleted); otherwise it is overwritten by the message "Message delete" and the status is set to hidden.

HTTP Request

DELETE /api/v2/pm/{id}/

Example Request


const headers = {
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/pm/{id}/',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone