GetXAPI
Tweets

Delete Tweet

Delete a tweet programmatically via API. $0.001 per call. GetXAPI delete tweet endpoint documentation with examples.

POST/twitter/tweet/delete

This endpoint costs $0.001 per API call.

Permanently deletes a tweet owned by the auth_token's account.

Request Body

FieldTypeRequiredDescription
auth_tokenstringYesUser's auth token
tweet_idstringYesNumeric id of the tweet to delete. Must be owned by the auth_token holder
proxystringNoProxy URL (http://, https://, socks5://, or socks4://)

Notes

  • Permanent — a deleted tweet cannot be recovered.
  • You can only delete your own tweets. Attempting to delete another account's tweet returns 403.
  • Idempotent — deleting an already-deleted tweet still returns 200 (with "already": true when X reports it as already gone).

Response (200)

{
  "status": "success",
  "msg": "Tweet deleted successfully",
  "data": {
    "tweetId": "2019264360682778716",
    "deleted": true
  }
}

Error Responses

400 - Missing or invalid tweet_id

{
  "error": "Invalid tweet_id: \"abc\" — must be a numeric tweet ID"
}

401 - Invalid auth_token

{
  "error": "Invalid auth_token - could not extract userId"
}

403 - Not your tweet

Returned when the tweet isn't owned by the auth_token's account.

Example

curl -X POST "https://api.getxapi.com/twitter/tweet/delete" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "auth_token": "your_auth_token",
    "tweet_id": "2019264360682778716"
  }'

On this page