---
title: "Delete a tweet by its ID"
method: POST
path: "/delete"
---

# Delete a tweet by its ID

`POST /delete`

This function deletes a specific tweet from X using its unique identifier. It removes the tweet from the platform and returns a confirmation of the deletion. If successful, it provides a boolean indicating whether the tweet was deleted, and if there are any errors, it returns detailed error information.

## Request body

- object
  - `body` object — Body of the delete sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/twitter

## Response `200`

Successful deletion of the tweet

- object
  - `data` object, required
    - `deleted` boolean, required — True if the tweet was deleted, false otherwise
  - `errors` object[]
    - `detail` string — A detailed description of the error
    - `status` number — The HTTP status code of the error
    - `title` string — The title of the error
    - `type` string — The type of the error

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.dev/microfox-ai/apis/microfox-x-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/microfox-x-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/microfox-x-sdk-api/revisions/9a6d6c9f0b84/schema)
