---
title: Delete Audience Profile
protocol: rest
method: DELETE
endpoint: /v1/projects/{projectId}/audiences/{profileId}
description: "Delete an audience profile"
---

# Delete Audience Profile

Permanently delete an audience profile. All tokens generated for this profile will be invalidated immediately.

<Endpoint method="DELETE" path="/v1/projects/{projectId}/audiences/{profileId}" />

<Callout type="warning">
  Deleting a profile invalidates all tokens for that profile. Clients using those tokens will lose access to gated pages.
</Callout>

## Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID.
</ParamField>

<ParamField path="profileId" type="string" required>
  The audience profile ID to delete.
</ParamField>

## Response

Returns a success confirmation.

## Example

<CodeGroup>
```bash cURL
curl -X DELETE https://api.syntext.dev/v1/projects/proj_abc123/audiences/aud_xyz789 \
  -H "Authorization: Bearer stx_abc12345_..."
```

```typescript SDK
import { Syntext } from '@syntext/sdk'

const client = new Syntext('stx_abc12345_...')

await client.audiences.delete('proj_abc123', 'aud_xyz789')
```

```python Python
from syntext import Syntext

client = Syntext("stx_abc12345_...")

client.audiences.delete("proj_abc123", "aud_xyz789")
```
</CodeGroup>

### Response

```json
{
  "deleted": true,
  "id": "aud_xyz789"
}
```

## Error Responses

### 404 Not Found

Returned when the profile does not exist.

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