remove_vm_tag
Remove an exact NSX tag scope/value pair from a VM to immediately update dynamic security 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_id | Yes | VM external ID (fabric UUID, from list_vm_tags). | |
| target | No | Optional NSX Manager target from config. | |
| tag_scope | Yes | Scope of the tag to remove (e.g. 'env'). | |
| tag_value | Yes | Value of the tag to remove (e.g. 'production'). |