Delete a service linked role.


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 Required DeleteServiceLinkedRole

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

RoleName String Required AliyunServiceRoleForPolarDB

The name of the role.

Response parameters

Parameter Type Sample response Description
DeletionTaskId String task/acs-service-role/****

The ID of the deletion task.

RequestId String B595E5 BF-FF5F-4E7F-B95A-B90FE242FEB6

The ID of the request.


Sample requests Action=DeleteServiceLinkedRole
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "B595E5BF-FF5F-4E7F-B95A-B90FE242FEB6",
    "DeletionTaskId": "task/acs-service-role/****"

Error code

HTTP status code Error code Error message Description
404 EntityNotExist.Role The role does not exist. The error message returned because the role does not exist.
404 EntityNotExist.ServiceLinkedRole This role exists but is not a Service Linked Role. The role exists but is not a service linked role.

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