Hotspot User automatic logout after 24h

Hello guys,

I would like hotspot user logout forget that, after 24h automatic out.

can help someone with a script ???

ROS V3.10

Wrong Room…Pl Move…

Is the “idle timeout” parameter in the hotspot user profile not working as expected?
That should help to log out users when they “do nothing” long enough…

The “Idle timeout does not,
because the network server Dude and this is enough for the purpose of monitoring traffic to the” idle timeout "function does not allow access ..

I have created a script, unfortunately, is also not correct.
can anyone help?
V3.11

:foreach i in=[/ip hotspot active find] do={
:if ([/ip hotspot active get $i uptime] > 1d) do={
/ip hotspot active remove $i
}
}