curl --request DELETE \
--url http://localhost:3333/v1/policies/{id} \
--header 'X-API-Key: <api-key>'{
"success": true,
"deletedPolicy": {
"id": "pol_abc123def456",
"name": "Data Privacy Policy"
},
"authType": "api-key"
}Permanently deletes a policy. This action cannot be undone. Supports both API key authentication (X-API-Key header) and session authentication (Bearer token or cookies).
curl --request DELETE \
--url http://localhost:3333/v1/policies/{id} \
--header 'X-API-Key: <api-key>'{
"success": true,
"deletedPolicy": {
"id": "pol_abc123def456",
"name": "Data Privacy Policy"
},
"authType": "api-key"
}API key for authentication
Policy ID
"pol_abc123def456"
Was this page helpful?