Remove hotspot active user with specify queue

Hello my friends.
I want remove active hotspot users with specify simple queue attributes (for ex: 512k/512k).

/queue simple 
:foreach i in=[ find ] do={
 :local max [get value-name=max-limit $i]
 :local ip [get value-name=target $i]

:if ($max ="512k/512k") do={
/ip hotspot active
:foreach j in=[ find=~$ip] do={
/ip hotspot active remove $ip;
}
}
}

I tried to write it.
But it not working.
anyone can help me ?
thank you in advance.

No body’s cant help me ?

I write it myself.
you can use it.

/queue simple 
:foreach i in=[ find ] do={
 :local max [get value-name=max-limit $i]
 :local ip [:tostr [get value-name=target $i]]
 :local ip2 [:pick $ip 0 [:find $ip "/"]]; 
:if ($max ="1024k/1024k") do={

:foreach j in=[/ip hotspot active find address=$ip2] do= {
        /ip hotspot active remove $j;
   }
}
}
}