DELETE direct_messages/events/destroy
delete-message-event

DELETE direct_messages/events/destroy

Deletes the direct message specified in the required ID parameter. The authenticating user must be the recipient of the specified direct message. Direct Messages are only removed from the interface of the user context provided. Other members of the conversation can still access the Direct Messages. A successful delete will return a 204 http response code with no body content.

Important: This method requires an access token with RWD (read, write & direct message) permissions.

Resource URL

https://api.x.com/1.1/direct_messages/events/destroy.json

Resource Information

Response formats 204 - No Content
Requires authentication? Yes (user context only)
Rate limited? Yes

Parameters

id (required) The id of the Direct Message event that should be deleted.

Example request using Twurl

twurl -X DELETE "/1.1/direct_messages/events/destroy.json?id=938178981337088004"