Delete a Policy
Permanently deletes a policy. Any groups currently assigned this policy will lose their access rules.
DELETE /v1/docks/:dockId/policies/:policyId
Path Parameters
| Parameter | Type | Description |
|---|
dockId | string | The dock ID |
policyId | string | The policy ID |
Example Request
curl -X DELETE https://api.docyard.io/v1/docks/dock_01HQ3K.../policies/pol_01HQ3P... \
-H "Authorization: Bearer dk_live_a1b2c3d4..."
Response
Error Handling
| Status | Condition |
|---|
401 | Missing or invalid API key |
404 | Policy or dock not found |
This action is irreversible. All version history for this policy is also deleted. Groups that reference this policy will no longer have any access rules applied.