delete

fun DirectMessageEvents.delete(id: String, vararg options: Option): EmptyApiAction

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.

Twitter API reference

Receiver

DirectMessageEvents endpoint instance.

Return

EmptyApiAction.

Parameters

id

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

options

Optional. Custom parameters of this request.