delete_dfw_policy
Delete a distributed firewall security policy by ID. Removes the specified policy, but fails if it still contains active rules—clear those rules first.
Instructions
[WRITE] Delete a DFW security policy.
Returns {"status": "deleted", "message": ...}, else {"error", "hint"}. Refuses if the policy still holds active rules: list them with list_dfw_rules and clear each with delete_dfw_rule first.
Args: policy_id: ID of the policy to delete. target: Optional NSX Manager target from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| policy_id | Yes |