remove_vm_tag
Remove an NSX tag from a virtual machine by exact scope and value, immediately affecting 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vm_id": "<vm_id>",
"tag_scope": "<tag_scope>",
"tag_value": "<tag_value>"
},
"name": "remove_vm_tag"
}
}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'). |