Removes a delegated administrator account.

Note If the delegated administrator account that you want to remove has historical management tasks in the related trusted service, the trusted service may be affected after the delegated administrator account is removed. Therefore, proceed with caution.

In this example, the delegated administrator account 181761095690**** is removed for Cloud Firewall.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeregisterDelegatedAdministrator

The operation that you want to perform. Set the value to DeregisterDelegatedAdministrator.

AccountId String Yes 181761095690****

The ID of the member account in the resource directory.

ServicePrincipal String Yes

The identification of the trusted service.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String DF5D5C52-7BD0-40E7-94C6-23A1505038A2

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" ?>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "DF5D5C52-7BD0-40E7-94C6-23A1505038A2"

Error codes

HTTP status code Error code Error message Description
409 InvalidParameter.ServicePrincipal The specified ServicePrincipal is invalid. The error message returned because the value of the ServicePrincipal parameter is invalid.
409 AccountNotRegistered The specified account is not a delegated administrator for this service. The error message returned because the specified member account is not the delegated administrator account of the current trusted service.

For a list of error codes, visit the API Error Center.