Hi All
Im trying to write a script to import walled garden domains from our web server. Script is working fine, although i need to clear the current walled garden list before importing the new one, but its not working. I clearly have a head full of spam, so could someone point me in the right direction please.
THis is the code I am trying to use to loop through the walled-garden and remove the entries
# remove all the walled garden entries
:foreach i in=[/ip hotspot walled-garden find ] do={
/ip hotspot walled-garden remove numbers=i
}
Many thanks