/policyengine/v1/policies/<policy_name>: DELETE
Deletes a policy.
The
/policyengine/v1/policies/<policy_name>: DELETE
endpoint deletes the specified policy. The following table shows which roles can access this REST
API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓ | ✓ | X | Χ | Χ |
Important: You cannot delete the
"Collection"
and "Temperature"
tags.Synopsis of the request URL
curl -k -H 'Authorization: Bearer <token>'
https://<spectrum_discover_host>/policyengine/v1/policies/pol2 -X DELETE
Supported request types and response formats
Supported request types:
Supported response formats:- DELETE
- JSON
Examples
- The following example deletes a policy named pol2:
- Issue the following request on one
line:
curl -k -H 'Authorization: Bearer <token>' https://<spectrum_discover_host>/policyengine/v1/policies/<policy_name> -X POST
- The following response is returned:
Deleted policy pol2
- Issue the following request on one
line: