You can remove a tag from a resource when the tag is no longer needed to manage or retrieve the resource. This topic describes how to remove a tag from a resource in the Elastic Compute Service (ECS) console. If you remove a tag from a resource and the tag is not added to any other resources, this tag is automatically deleted.

Prerequisites

A tag is added to specific resources.

Background information

Before you remove a tag from a resource, take note of the following items:
  • Up to 20 tags can be removed at a time.
  • If you remove a tag from all of its resources such as ECS instances, snapshots, and security groups, the tag is deleted.

Procedure

The following section provides an example on how to remove a tag named ECS:Documentation from one or more ECS instances.

  1. Log on to the ECS console.
  2. In the left-side navigation pane, click Tags.
  3. On the Custom Tags tab, select Instance from the Resource Type drop-down list.
  4. In the tag list, find the ECS:Documentation tag that you want to remove. Then, go to the Resources tab by using one of the following methods:
    Note In the ECS:Documentation tag, the tag key is ECS and the tag value is Documentation.
    • Method 1: Click the ECS tag key, and then click View Resources in the Actions column corresponding to the Documentation tag value.
    • Method 2: In the Actions column corresponding to the ECS tag key, click View Resources.
  5. On the Resources tab, remove the tag from one or more resources.
    • Remove the tag from a single resource: Find the resource from which you want to remove the tag and click Remove from Resources in the Actions column.
    • Remove the tag from multiple resources at a time: Select multiple resources from which you want to remove the tag and click Remove from Resources in the lower part of the tab.
    remove resources
  6. In the Remove from Resources message, click OK.

Result

After the tag is removed from one or more resources, you can click the tag1 icon on the Resources tab to verify the removal.

What to do next

If you implement access control or automated O&M, or generate bill reports based on tags, you need to pay attention to the business changes caused by removing the tags. For more information, see Considering ramifications of future changes.