delete_group
Delete an NSX security group. Refuses removal if the group is referenced by firewall rules or policies, and identifies dependent rules to retarget or delete first.
Instructions
[WRITE] Delete an NSX security group.
Returns {"status": "deleted", "message": ...}, else {"error", "hint"}. Use it once get_group shows the group is unwanted. Refuses if anything still references it (NSX's group-associations API covers DFW rules and policies, gateway firewall, nested groups, service insertion), and refuses if that check itself fails (fail-safe). When the refusal names a DFW rule, retarget it with update_dfw_rule or drop it with delete_dfw_rule first.
Args: group_id: ID of the group to delete. target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| group_id | Yes |