Updated on 2026-01-13 GMT+08:00

Deleting a Policy

Function

This API is used to delete the security policy for a specified device.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1/{project_id}/devices/security-policies/{policy_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

policy_id

Yes

Long

Policy ID.

project_id

Yes

String

Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

id

String

ID

msg

String

Message.

status

String

Response code.

Status code: 204

Resource deleted.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Deleted.

204

Resource deleted.

401

Unauthorized. The user is not logged in or the token is invalid.

403

Unauthorized to access the resource.

Error Codes

See Error Codes.