Updated on 2025-09-08 GMT+08:00

Deleting a Policy

Function

This API is used to delete a policy.

Calling Method

For details, see Calling APIs.

URI

DELETE /v2/{cloudProjectId}/rule-sets/{ruleSetId}/delete

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

cloudProjectId

Yes

String

Definition:

Project ID. For details, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

ruleSetId

Yes

String

Definition:

Policy ID, which is the unique identifier of a policy. Obtain the policy ID by calling the API for querying policies. data.id indicates the policy ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

Boolean

Definition:

Successful or not.

Value range:

  • true: successful.

  • false: failed.

Example Requests

DELETE https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/rule-sets/2f4a244eff3442f0befd6df80a1eabec/delete

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.