Delete Policy

Last Updated on : 2023-10-09 08:04:27download

Based on the policy ID, delete the specified policy.

API address

DELETE: /v2.0/cloud/iam/policy/{policy_id}

Request parameter

Parameter nameTypeINRequiredDescription
policy_idLonguritrueThe ID of the specified policy.

Return parameter

Parameter nameTypeDescription
resultBooleanThe result of deletion. Valid values:
  • true: Deleted successfully.
  • false: Failed to delete it.
successBooleanIndicates whether the request is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringFor more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.

Request example

DELETE: v2.0/cloud/iam/policy/1

Return example

{
    "tid": "16868012577231686801257723",
    "result": true,
    "t": 1686801257723,
    "success": true
}

Error code

For more information, see error code.