Skip to main content
DELETE
cURL
Permanently deletes a policy and every transaction linked to it. This is a hard delete, not a soft delete. The policy must belong to the authenticated upstream entity.
This action cannot be undone. Deleting a policy also deletes all of its transactions.

Path Parameters

Response

Returns 204 No Content on success with an empty body.

Error Scenarios

Bad Request (400)

Returned when policyId is not a valid MongoDB ObjectId format.

Policy Not Found (404)

Returned when policyId does not exist or belongs to a different upstream entity.

Unauthorized (401)

Missing or invalid authentication token. See Authentication.

Path Parameters

policyId
string
required

Unique identifier of the policy

Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Response

Policy and its transactions permanently deleted