Hotspot Users
Hotspot Hosts Table Cleanup — v6 & v7
Removes hotspot hosts that are neither authorized nor bypassed, so the Hosts table does not fill with stale entries. Runs from the Scheduler.
RouterOS v6 & v7
/system script add name=hotspot_host_cleanup source={
# EN: Remove hosts that are not authorized and not bypassed | AR: حذف الأجهزة غير المصرّح لها وغير المتجاوزة
/ip hotspot host remove [find where authorized=no bypassed=no];
}
# EN: Run it every hour (change the interval if you like) | AR: تشغيله كل ساعة (يمكنك تغيير الفترة)
/system scheduler add name=hotspot_host_cleanup interval=1h on-event=hotspot_host_cleanup