首页 UntagResources

UntagResources

更新时间: 2026-02-25 21:57:57

Detach tags from a list of specified resources. If a tag is no longer attached to any resource after detachment, Alibaba Cloud deletes it automatically.

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 syntax

DELETE /api/v1/tags HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Region

cn-hangzhou

ResourceType

string

Yes

Resource type

ResourceGroup

ResourceId

array

Yes

Resource IDs. Maximum: 50 items.

string

No

List of resources.

[\"rga2yvifxyicn1rq\"]

TagKey

array

No

List of tag keys. Maximum: 20 items.

string

No

Tag value for the resource. Valid values for N: 1 to 20. You can specify an empty string. Maximum length: 128 characters. Cannot start with aliyun or acs:. Cannot contain http:// or https://.

tagKey

All

boolean

No

Whether to detach all tags from the resource. Valid values:

  • true: Detach all tags from the resource.

  • false: Do not detach all tags from the resource.

Note
  • Default value: false.

  • If you specify both TagKey and this parameter, this parameter is ignored.

false

Response elements

Element

Type

Description

Example

object

RequestId

string

Common parameter. Each request has a unique ID. Use this ID to troubleshoot and locate issues.

F082BD0D-21E1-5F9B-81A0-AB07485B03CD

Examples

Success response

JSON format

{
  "RequestId": "F082BD0D-21E1-5F9B-81A0-AB07485B03CD"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.

阿里云首页 人工智能平台 PAI 相关技术圈