Help script on vb6 api

Hi!
I’m using the source from here http://forum.mikrotik.com/t/api-in-visual-basic-6-working-fine/46922/1

it seems working fine.
but how can i remove hotspot user?

i tried to use this but not work
/ip/hotspot/user/remove [find name=user1]

API does not support query in set operation.

Normally you’d have to split your commands (print with query word to get id, then remove by id).

You can however use the primary name of an object as identifier:


/ip/hotspot/user/remove=.id=user1