All Products
Search
Document Center

Resource Access Management:DeleteServiceCredential

Last Updated:Jul 08, 2026

Deletes the service credential of a Resource Access Management (RAM) user.

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

ServiceCredentialId

string

Yes

The service credential ID.

SC****************

UserPrincipalName

string

No

The logon name of the Resource Access Management (RAM) user. If this parameter is not specified, the service credential of the identity that invokes this operation is deleted.

test@example.onaliyun.com

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

492E130C-76D3-55D5-BE5C-C023E431369A

Examples

Success response

JSON format

{
  "RequestId": "492E130C-76D3-55D5-BE5C-C023E431369A"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.