{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-delete-tweet-query-schema.json",
  "title": "DeleteTweetQuery",
  "description": "Parameters for deleting tweets",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-tweet-actions-endpoints-api-openapi.yml#/components/schemas/DeleteTweetQuery",
  "properties": {
    "cookie": {
      "type": "string",
      "title": "Cookie",
      "description": "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](/authentication#write-operations--byoc-bring-your-own-cookie) and [How to get Cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)."
    },
    "username": {
      "type": "string",
      "title": "Username",
      "description": "Twitter username whose tweets to delete"
    },
    "target_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Id",
      "description": "Specific tweet ID to delete (if not provided, deletes all user tweets)"
    }
  },
  "type": "object",
  "required": [
    "cookie",
    "username"
  ]
}