Skip to main content

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

ParameterTypeDescription
dockIdstringThe dock ID
policyIdstringThe 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

{
  "success": true
}

Error Handling

StatusCondition
401Missing or invalid API key
404Policy 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.