Write Actions

Delete Draft Tweet

Delete a draft owned by the account behind your registered session, identified by its id. The draft is removed from X's composer. Nothing was ever public, so this publishes nothing and retracts nothing. Billed at $0.0008 per call, the same as a standard read. Cost: $0.0008 per call.

post/draft/delete

Request

  • Base URL: https://api.twitterapis.com/twitter
  • URL: https://api.twitterapis.com/twitter/draft/delete
  • Auth: HTTP bearer

Request body

idstring required

ID of the draft to delete, from draft/list. Also accepted as draft_tweet_id.

Example request

{
  "id": "2086650228950683648"
}

Response

Delete a draft from your own account by ID.

okboolean

True when the delete call reached X and X answered success (mirrors deleted).

deletedboolean

True when the delete call reached X and X answered success. X answers this operation with a confirmation rather than an id, so the body is not parsed for a per-row field: this is transport-level success, not a re-read of your drafts.

draft_tweet_idstring

The draft ID you asked to delete, echoed back.

Changes

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