Delete policies for one capability
DELETE/v1/admin/clients/:slug/policies/:capabilityKey
Closes every open policy row for (client, capability). No row is
ever removed — the policies are logically closed (audit history is preserved).
Not idempotent: re-deleting an already-closed policy returns
404 (CRT004001) to surface accidental loops. If
you want to confirm a policy is gone, use GET instead of
repeating DELETE.
Request
Responses
- 204
- 400
- 401
- 404
- 500
- 503
Policies closed successfully
Schema validation failed (GEN000000) or unknown capability key (CRT000002)
Missing or invalid authentication token (GEN001002) or Role unauthorized (GEN001006)
Unknown slug (CRT004004) or no active policy to delete (CRT004001).
Internal server error (GEN100000)
Connector-routing datastore temporarily unavailable (CRT103002)