Reply
Established Member
Posts: 1,480
Registered: ‎04-22-2016
Kudos: 333
Solutions: 119

Re: Deleting multiple vouchers one by one - Seriously?!

[ Edited ]

@ffdeguzman

Hi, did you even try it with the App? Hurray

Please reward people who have helped you with kudo's and mark your thread as solved when you receive a solution to your issue.
New Member
Posts: 44
Registered: ‎08-21-2015
Kudos: 10
Solutions: 1

Re: Deleting multiple vouchers one by one - Seriously?!

[ Edited ]

@cempa

 

of course yes. its okay for hundreds of vouchers. how about if in thousands? Specially the multi use vouchers that does not auto delete once expired. doable but tedious right.

 

the app hangs. i'm using ipad and s8+.

 

i'm asking for deletion of batch vouchers and not per voucher. via app or web controller.

New Member
Posts: 44
Registered: ‎08-21-2015
Kudos: 10
Solutions: 1

Re: Deleting multiple vouchers one by one - Seriously?!

@UBNT-Jacek

 

Any updates?

New Member
Posts: 9
Registered: ‎07-02-2016
Kudos: 6

Re: Deleting multiple vouchers one by one - Seriously?!

I'm having the same issue and I'm wondering if you are on site, couldn't you just reset the CK to FS? That would make the vouchers go away, then just reapply the config... shouldn't take more than a couple minutes, right? Or will they get saved somehow?

Ubiquiti Employee
Posts: 136
Registered: ‎05-12-2016
Kudos: 70
Solutions: 16

Re: Deleting multiple vouchers one by one - Seriously?!

Here is the post which I published some time ago about batch remove vouchers:

 

https://community.ubnt.com/t5/UniFi-Wireless/Can-t-Delete-Hot-Spot-Vouchers/m-p/2199538#M271620

 

Cheers,

Jacek

Emerging Member
Posts: 49
Registered: ‎09-05-2013
Kudos: 38
Solutions: 2

Re: Deleting multiple vouchers one by one - Seriously?!

I accidentally made a typo on a large batch of vouchers, so I needed to bulk-revoke that entire batch.  Here's the exact Mongo commands I used, for anyone who may be in the same situation:

 

Open mongodb connection:

mongo --port 27117

From the mongo prompt, switch to ace database:

> use ace

Find all of the available batches:

> db.voucher.distinct("create_time")
[
	NumberLong(1544516793),
	NumberLong(1544516825),
	NumberLong(1544516869),
	NumberLong(1544520799),
	NumberLong(1545069924),
	NumberLong(1546660618),
	NumberLong(1547572331),
	NumberLong(1548962734)
]

The one I wanted to delete was the most recent one.

 

Delete all vouchers from that batch:

> db.voucher.remove({"create_time": NumberLong(1548962734)})
WriteResult({ "nRemoved" : 1800 })

Exit mongodb:

> exit
bye
Reply