delete_policy
Deletes a RabbitMQ policy while recording an undo that recreates it exactly. Set dry_run=True to preview before removal.
Instructions
[WRITE][risk=medium] Delete a rabbitmq policy; the undo re-creates it.
Reads the policy first so the recorded undo can re-create it exactly. Pass dry_run=True to preview.
Args: vhost: The policy's vhost (the default vhost is '/'). name: Policy name (from list_policies). dry_run: If True, preview without deleting. target: rabbitmq target name from config; omit for the default.
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": {
"vhost": "<vhost>",
"name": "<name>"
},
"name": "delete_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| vhost | Yes | ||
| target | No | ||
| dry_run | No |