Destroying a policy

When you run the destroy endpoint on a policy, destruction happens immediately. This differs from running the destroy endpoint on a contact, where the actual destruction of data doesn’t happen until a scheduled batch process has run.

Use the following endpoint to destroy a policy:

  • POST /policy/v1/policies/{policyId}/destroy

This example immediately removes policy pc:5454 from the database:

Command

POST /policy/v1/policies/pc:5454/destroy

The request contains only the ID of the requester. The requester ID does not have to match the ID of a user in PolicyCenter.

Request

{
    "data": {
        "attributes": {
            "requesterId": "5678"
        }
    }
}