How to remove all walled-garden entried using queries

I’m using this query to remove all entries in my walled-garden but it’s not working. Please help.

mikrotik.Send(“/ip/hotspot/walled-garden/remove”);

It doesn’t work because you have to specify what exactly you want to remove.

What should be the query?

first,

/ip/hotspot/walled-garden/print
=.proplist=.id

then call

/ip/hotspot/walled-garden/remove
=.id=id1,id2,id3,etc

where idN are .ids from previous command, comma-separated