Delete Hotspot Vouchers (bulk)
unifi_delete_vouchersDelete hotspot vouchers in bulk using a required filter, such as expired.eq(true) or a batch name, so only matching vouchers are removed. Confirm first; deletion is irreversible.
Instructions
Delete every hotspot voucher matching a filter, in one call. A filter is REQUIRED so this can't wipe all vouchers by accident — e.g. "expired.eq(true)" to clear expired ones, or "name.eq('Weekend guests')" for a batch. CAUTION: irreversible; confirm with the user. To delete a single voucher by ID, use unifi_delete_voucher instead.
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": {
"filter": "<filter>"
},
"name": "unifi_delete_vouchers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | UniFi filter selecting which vouchers to delete, e.g. "expired.eq(true)". Required. | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. |