Tweet Actions Endpoints

Delete One or More Tweets

Deletes one or more tweets from a specified user account. This endpoint supports two modes:

  1. Single Tweet Deletion: Provide a target_id to delete a specific tweet.
  2. Bulk Deletion: Omit the target_id to delete all tweets from the user's account.

Warning: The bulk deletion mode is irreversible and will permanently remove all tweets from the account. Use with extreme caution.

post/twitter/tweets/delete-batch

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/twitter/tweets/delete-batch
  • Auth: HTTP bearer

Request body

cookiestring required

The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See Authentication Security and How to get Cookie.

usernamestring required

Twitter username whose tweets to delete

target_idstring nullable

Specific tweet ID to delete (if not provided, deletes all user tweets)

Example request

{
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7",
  "username": "myusername",
  "target_id": "1234567890123456789"
}

Response

Success confirmation

codeinteger

HTTP status code

msgstring

Response message

datastring[] required

List of deleted tweet IDs

Changes

No recorded changes to this operation across all 1 revision of this API.