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
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X DELETE /api/v2/pm/{id}/ \
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Response status code | None |