All Products
Search
Document Center

Security Center:DeleteCheckPolicy

Last Updated:Oct 27, 2025

Delete custom scope directories in Cloud Security Posture Management (CSPM) custom checks. You can remove assigned standards, requirements, or sections.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DeleteCheckPolicydelete
*CustomCheckStandardPolicy
acs:yundun-sas:{#regionId}:{#accountId}:customcheckstandardpolicy/{#customcheckstandardpolicyId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PolicyIdsarrayYes

Array of policies to delete

longYes

The ID of the deleted policy.

Note You can call the ListCheckPolicies to obtain the policy ID.
100000000001
PolicyTypestringYes

Policy type for custom check rule:

  • STANDARD: Standard-level policy
  • REQUIREMENT: Requirement-level policy
  • SECTION: Section-level policy
STANDARD

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The unique ID of the request, which is used to locate and troubleshoot issues.

F8B6F758-BCD4-597A-8A2C-DA5A552C****
Policysarray<object>

List of deleted policy details.

Policyobject

Deleted policy details.

PolicyIdlong

Deleted policy ID.

1000000000001
PolicyTypestring

Policy type for custom check rule:

  • STANDARD: Standard-level policy
  • REQUIREMENT: Requirement-level policy
  • SECTION: Section-level policy
STANDARD
PolicyShowNamestring

The name of the custom policy.

testPolicyName

Examples

Sample success responses

JSONformat

{
  "RequestId": "F8B6F758-BCD4-597A-8A2C-DA5A552C****",
  "Policys": [
    {
      "PolicyId": 1000000000001,
      "PolicyType": "STANDARD",
      "PolicyShowName": "testPolicyName"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400ParamIllegal.%sThe parameter %s is invalid, please fill it in again.Invalid parameter, please fill in again
400CspmDeleteCustomPolicyErrorThe dependent policy needs to be disassociated.Delete error, dependent dependencies must be disassociated first.

For a list of error codes, visit the Service error codes.