/tool user-manager user remove [find];
/tool user-managersession remove [find];
/tool user-manager database clear-log;
/tool user-manager database rebuild;
/system reboot;
If you see what I have writed, you can deduce to do this:Thank you for your suggestion. I am not using usermanager. I need to delete all entries under the user list in Hotspot. The reason for this is that hotspot users get 400mb free and thereafter they need to purchase access through the portal on the landing page. I have a script in place to remove all users that have reached their quota and this is scheduled to run at midnight. This is the one I have tried to clear all users but it does not work :foreach counter in=[/ip hotspot user find ] do={/ip hotspot user remove}
/ip hotspot user remove [find];