remove_vm_tag
Remove a specific NSX tag from a VM by specifying VM ID, tag scope, and tag value. Deletes only that exact tag, preserving others, and immediately updates dynamic group membership.
Instructions
[WRITE] Remove an NSX tag from a virtual machine.
Returns {"status": "removed", "vm_id", "scope", "tag"}, not the VM's remaining tags. Only the exact scope/value pair is removed — other tags survive. Removing a tag changes dynamic group membership immediately — groups with tag Conditions stop matching the VM — so re-check with get_group. Use list_vm_tags first to confirm the pair.
Args: vm_id: VM external ID (fabric UUID, from list_vm_tags). tag_scope: Scope of the tag to remove (e.g. 'env'). tag_value: Value of the tag to remove (e.g. 'production'). target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | ||
| target | No | ||
| tag_scope | Yes | ||
| tag_value | Yes |