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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| vhost | Yes | ||
| target | No | ||
| dry_run | No |