Skip to main content

Delete a Dock

Permanently deletes a dock. This cascades to all artifacts, recipients, policies, and audit logs within the dock.
DELETE /v1/docks/:id

Path Parameters

ParameterTypeDescription
idstringThe dock ID

Example Request

curl -X DELETE https://api.docyard.io/v1/docks/dock_01HQ3K... \
  -H "Authorization: Bearer dk_live_a1b2c3d4..."

Response

{
  "success": true
}

Error Handling

StatusCondition
401Missing or invalid API key
404Dock not found
This action is irreversible. All artifacts, recipients, policies, groups, secrets, and audit logs within the dock are permanently deleted. Ensure you have exported any required compliance data before deletion.