Skip to content
Neeraj Lagwankar edited this page Feb 6, 2019 · 6 revisions

Destroys the tweet specified by the required ID parameter. The authenticating user must be the author of the specified status. Returns the destroyed status if successful.

Documentation

Parameters

'id' => 12345 - Delete a tweet with the id 12345

'trim_user' => true - Trim the response to include only tweets, and the user ID for each tweet

Usage

Resource URL: $url = "https://api.twitter.com/1.1/statuses/destroy/:id.json";

Request Method: $requestMethod = "POST";

POST Fields: $postfields = array('id' => 12345, 'trim_user' => true);

Clone this wiki locally