# Delete profile

> Delete a profile and everything connected to it. Cannot be undone.

Canonical: <https://www.tryadeli.com/docs/api/profiles/delete-profile>

`DELETE https://app.tryadeli.com/api/v1/profiles/{profileId}`

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

> **Danger: This cascades and cannot be undone**
>
> Deleting a profile removes its connected accounts, their cached history, and
> its connection sessions. Your API keys belong to the organization and keep
> working. It does not delete anything on Instagram, Facebook, TikTok, YouTube, X, or Bluesky.

**Path parameters**

| Name        | Type   | Required | Description                                                                      |
| ----------- | ------ | -------- | -------------------------------------------------------------------------------- |
| `profileId` | `uuid` | Yes      | A profile in your organization. Any other value returns 404 profile\_not\_found. |

**Errors** — `401 unauthorized`, `400 invalid_request`, `404 profile_not_found`,
`502 database_error`.

## Request examples

**cURL**

```bash
curl --fail-with-body -X DELETE "https://app.tryadeli.com/api/v1/profiles/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/profiles/00000000-0000-4000-8000-000000000001", {
  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/profiles/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
)
print(response.json())
```

## Responses

### 200

```json
{ "id": "00000000-0000-4000-8000-000000000001", "deleted": true }
```

### 404

```json
{
  "error": {
    "code": "profile_not_found",
    "message": "Profile not found"
  }
}
```
