All Products
Search
Document Center

Resource Management:DeleteServiceLinkedRole

Last Updated:Aug 28, 2026

Deletes a service-linked role.

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

RoleName

string

Yes

The name of the role.

AliyunServiceRoleForPolarDB

Response elements

Element

Type

Description

Example

object

DeletionTaskId

string

The ID of the deletion task.

task/acs-service-role/polardb.aliyuncs.com/AliyunServiceRoleForPolarDB/64c4f9cc-fac2-4692-ae1b-804ae4b9****

RequestId

string

The request ID.

B595E5BF-FF5F-4E7F-B95A-B90FE242FEB6

Examples

Success response

JSON format

{
  "DeletionTaskId": "task/acs-service-role/polardb.aliyuncs.com/AliyunServiceRoleForPolarDB/64c4f9cc-fac2-4692-ae1b-804ae4b9****",
  "RequestId": "B595E5BF-FF5F-4E7F-B95A-B90FE242FEB6"
}

Error codes

HTTP status code

Error code

Error message

Description

404 EntityNotExist.Role The role does not exist. The role does not exist.
404 EntityNotExist.ServiceLinkedRole This role exists but is not a Service Linked Role. This role exists but is not a Service Linked Role.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.