DELETE
/
v1
/
policies
/
{id}
Delete policy
curl --request DELETE \
  --url https://api.trycomp.ai/v1/policies/{id} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "deletedPolicy": {
    "id": "pol_abc123def456",
    "name": "Data Privacy Policy"
  },
  "authType": "api-key"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

id
string
required

Policy ID

Example:

"pol_abc123def456"

Response

Policy deleted successfully

success
boolean

Indicates successful deletion

Example:

true

deletedPolicy
object
authType
enum<string>

How the request was authenticated

Available options:
api-key,
session