Delete Audience Profile
Permanently delete an audience profile. All tokens generated for this profile will be invalidated immediately.
Deleting a profile invalidates all tokens for that profile. Clients using those tokens will lose access to gated pages.
Path Parameters
The project ID.
The audience profile ID to delete.
Response
Returns a success confirmation.
Example
curl -X DELETE https://api.syntext.dev/v1/projects/proj_abc123/audiences/aud_xyz789 \
-H "Authorization: Bearer stx_abc12345_..."
import { Syntext } from '@syntext/sdk'
const client = new Syntext('stx_abc12345_...')
await client.audiences.delete('proj_abc123', 'aud_xyz789')
from syntext import Syntext
client = Syntext("stx_abc12345_...")
client.audiences.delete("proj_abc123", "aud_xyz789")
Response
{
"deleted": true,
"id": "aud_xyz789"
}
Error Responses
404 Not Found
Returned when the profile does not exist.
{
"error": {
"code": "profile_not_found",
"message": "Profile does not exist"
}
}