All Products
Search
Document Center

Cloud Firewall:DeleteControlPolicy

Last Updated:Dec 09, 2025

Deletes an access control policy.

Operation description

This operation deletes access control policies for inbound or outbound traffic.

QPS limit

The queries per second (QPS) limit for a single user is 10. If you exceed this limit, API calls are throttled. This may affect your business operations. We recommend that you call this operation at a reasonable rate.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

SourceIp deprecated

string

No

The source IP address of the traffic.

192.0.XX.XX

Lang

string

No

The language of the request and response.

Valid values:

  • zh (default): Chinese

  • en: English

zh

AclUuid

string

Yes

The unique ID of the access control policy.

To delete an access control policy, you must provide its ID. Call the DescribeControlPolicy operation to obtain the ID.

00281255-d220-4db1-8f4f-c4df221ad84c

Direction

string

No

The traffic direction that the access control policy controls.

Valid values:

  • in: inbound traffic.

  • out: outbound traffic.

in

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D

Examples

Success response

JSON format

{
  "RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorParametersUid The aliUid parameter is invalid. The aliUid parameter is invalid.
400 ErrorDBSelect An error occurred while querying database. An error occurred while querying database.
400 ErrorParametersDirection The direction is invalid. The direction is invalid.
400 ErrorRecordLog An error occurred while updating the operation log. An error occurred while updating the operation log.
400 ErrorDBDelete An error occurred while deleting the database. An error occurred while deleting the database.
400 ErrorMarshalJSON An error occurred while encoding JSON. An error occurred while encoding JSON.
400 ErrorAclNotExist The ACL does not exist. The ACL does not exist.
400 ErrorParametersAclUuid Specified parameter AclUuid is not valid. Specified parameter AclUuid is not valid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.