Policies

Delete a policy

Permanently delete a policy and its hosted page. Pass delete_consent_records=true to also delete the consent records linked to this policy.

delete/api/v1/policies/{policyId}

Request

  • Base URL: https://policyforge.co
  • URL: https://policyforge.co/api/v1/policies/{policyId}
  • Auth: HTTP bearer

Query parameters

delete_consent_recordsboolean

Also delete the consent records linked to this policy before deleting it

Response

Policy deleted

messagestring
deleted_consent_recordsinteger

Only present when delete_consent_records=true

Example response

{
  "message": "Policy deleted successfully",
  "deleted_consent_records": 12
}

Changes

No recorded changes to this operation across all 1 revision of this API.