-
Notifications
You must be signed in to change notification settings - Fork 798
Delete a tweet
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.
'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
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);