---
title: "Delete an X post"
method: DELETE
path: "/api/v1/posts/x/{postId}"
tags: ["Posts"]
---

# Delete an X post

`DELETE /api/v1/posts/x/{postId}`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/posts/x/{postId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/posts/x/:postId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `postId` string, required

## Query parameters

- `accountId` string, uuid, required
- `profileId` string, uuid

## Response `200`

Success

- object
  - `id` string, required
  - `accountId` string, uuid, required
  - `providerId` string, required
  - `deleted` true, required
  - `platform` 'x', required

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `402`: Billing is required: a card is needed to connect more accounts or use X (`billing_required`, `x_billing_required`), or the workspace has used its free monthly allowance (`usage_limit_reached`)
- `403`: The connection lacks a permission or provider-confirmed resource
- `404`: Profile, account, or object not found
- `422`: The connected account cannot perform this operation
- `429`: Provider quota or rate limit exhausted
- `502`: Invalid request or provider failure
- `503`: The platform is temporarily unavailable

---

[API](https://skmtc.dev/adeli/apis/adeli-api.md) - [All operations](https://skmtc.dev/adeli/apis/adeli-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adeli/apis/adeli-api/revisions/ed680dfa9033?raw)
