cURL
Policy Ingestion
Delete Policy
Permanently delete a policy and its transactions
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.
Path Parameters
Response
Returns204 No Content on success with an empty body.
Error Scenarios
Bad Request (400)
Returned whenpolicyId is not a valid MongoDB ObjectId format.
Policy Not Found (404)
Returned whenpolicyId does not exist or belongs to a different upstream entity.
Unauthorized (401)
Missing or invalid authentication token. See Authentication.Path Parameters
Unique identifier of the policy
Example:
"6650a1b2c3d4e5f6a7b8c9d0"
Response
Policy and its transactions permanently deleted