Delete Hotspot Voucher
unifi_delete_voucherDelete a UniFi hotspot voucher by ID to revoke its access code. This action is irreversible, so confirm the voucher first.
Instructions
Delete one hotspot voucher by ID, revoking the code. IDs come from unifi_list_vouchers. This cannot be undone — confirm with the user first.
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": {
"voucherId": "<voucherId>"
},
"name": "unifi_delete_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| voucherId | Yes | Voucher ID (UUID from unifi_list_vouchers) |