

# Add or remove Amazon Direct Connect virtual interface tags
<a name="modify-tags-vif"></a>

Tags provide a way to identify the virtual interface. You can add or remove a tag using either the Amazon Direct Connect console or using the command line or API if you are the account owner for the virtual interface.

**To add or remove a virtual interface tag**

1. Open the **Amazon Direct Connect** console at [https://console.amazonaws.cn/directconnect/v2/home](https://console.amazonaws.cn/directconnect/v2/home).

1. In the navigation pane, choose **Virtual Interfaces**.

1.  Select the virtual interface and then choose **Edit**.

1. Add or remove a tag.

   [Add a tag] Choose **Add tag** and do the following:
   + For **Key**, enter the key name.
   + For **Value**, enter the key value.

   [Remove a tag] Next to the tag, choose **Remove tag**.

1. Choose **Edit virtual interface**.

**To add a tag or remove a tag using the command line**
+ [tag-resource](https://docs.amazonaws.cn/cli/latest/reference/directconnect/tag-resource.html) (Amazon CLI) 
+ [untag-resource](https://docs.amazonaws.cn/cli/latest/reference/directconnect/untag-resource.html) (Amazon CLI) 