# Delete Threads post

> Delete a post from a Threads account.

Canonical: <https://www.tryadeli.com/docs/api/posts/delete-threads-post>

`DELETE https://app.tryadeli.com/api/v1/posts/threads/{postId}`

Authorization: `Bearer <API key>` — see [Authentication](https://www.tryadeli.com/docs/authentication)

Deletes a post from the Threads account. `postId` is the post's `providerId`
(`18028000000000001` in [the publish example](https://www.tryadeli.com/docs/api/posts/publish-threads)).
It can't be undone. Threads allows 100 deletes in any 24 hours per account.

**Path parameters**

| Name     | Type     | Required | Description                                        |
| -------- | -------- | -------- | -------------------------------------------------- |
| `postId` | `string` | Yes      | The post's providerId, a numeric Threads media id. |

**Query parameters**

| Name        | Type   | Required | Description                                                                       |
| ----------- | ------ | -------- | --------------------------------------------------------------------------------- |
| `accountId` | `uuid` | Yes      | The Threads account the post belongs to.                                          |
| `profileId` | `uuid` |          | Optional, because accountId names its profile. If you pass both, they must agree. |

## Request examples

**cURL**

```bash
curl -X DELETE "https://app.tryadeli.com/api/v1/posts/threads/18028000000000001?accountId=00000000-0000-0000-0000-000000000000" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/posts/threads/18028000000000001?accountId=00000000-0000-0000-0000-000000000000", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.ADELI_API_KEY}`,
  },
});
console.log(await response.json());
```

**Python**

```python
import os

import requests

response = requests.delete(
    "https://app.tryadeli.com/api/v1/posts/threads/18028000000000001",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
    params={
        "accountId": "00000000-0000-0000-0000-000000000000",
    },
)
print(response.json())
```

## Responses

### 200

```json
{ "id": "threads_post_00000000-0000-0000-0000-000000000000_18028000000000001", "platform": "threads", "accountId": "00000000-0000-0000-0000-000000000000", "providerId": "18028000000000001", "deleted": true }
```

### 404

```json
{
  "error": {
    "code": "post_not_found",
    "message": "Post not found on this account"
  }
}
```
