DELETE /compliancePolicies

Use this DELETE method to delete one or more compliance policies.

Important: Only compliance policies that are not in the "Assigned" state are deleted.

Authentication

Authentication with user name and password is required.

Request URL

DELETE https://<management_server_IP>/compliancePolicies

Query parameters

Parameters Required / Optional Description
policyName=<name> String Name of one or more compliance policies to be deleted, separated by a comma
removePackage=<boolean> String Identifies whether to delete the firmware-update packages that are associated with the specified compliance policies if the packages are not associated with another compliance policy. This can be one of the following values.
  • true. Deletes the firmware-update packages.

  • false. Does not delete the firmware-update packages

Note: All package files (payload, metadata, readme and history) are deleted.

The following example deletes four compliance policies and deletes the associated firmware-update packages.

POST https://192.0.2.0/compliancePolicies?policyName=policy1,policy2,policy3,policy4&removePackage=true

Request body

None

Response codes

Code Description
200 OK
400 Bad request
403 Forbidden
409 Conflict
500 Internal server error

Response body

Attributes Type Description
success String Results of the request. This can be one of the following values.
  • success. The request completed successfully.
  • failed. The request failed. A descriptive error message was returned.
messages Array Information about one or more messages
  explanation String Additional information to clarify the reason for the message
  id String Message identifier of a returned message
  recovery Array Recovery information
    text String User actions that can be taken to recover from the event
    URL String Link to the help system for more information, if available
  text String Message text associated with the message identifier

Response example

{
   "message":[],
   "success":"success"
}