Skip to main content

DELETE /compliancePolicies

Use this method to delete one or more compliance policies.

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

Authentication

Authentication with username and password is required.

Request URL

DELETE https://{management_server_IP}/compliancePolicies

Query parameters

ParametersRequired / OptionalDescription
policyName={name}StringName of one or more compliance policies to be deleted, separated by a comma
removePackage={boolean}StringIdentifies 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

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
successStringResults 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.
messagesArrayInformation about one or more messages
 explanationStringAdditional information to clarify the reason for the message
 idStringMessage identifier of a returned message
 recoveryArrayRecovery information
  textStringUser actions that can be taken to recover from the event
  URLStringLink to the help system for more information, if available
 textStringMessage text associated with the message identifier
The following example is returned if the request is successful.
{
"message":[],
"success":"success"
}