With this API, you can delete compliance policies and its postures. All details such as its exceptions and its posture are deleted.
- The delete method can be executed by the Manager and Auditor users only.
- Only one policy can be deleted at a time.
|
Parameter |
Required/Optional |
Data Type |
Description |
|---|---|---|---|
| policyId={value} | Required | Integer | The ID of the policy you want to delete. |
API Request
curl --location --request DELETE
'https://<qualys_base_url>/pcas/v3/policy?policyId=<policy_id>' \
--header 'accept: */*' \
--header 'Authorization: Bearer <Bearer Token>'
XML Output
204