pppoe server how to drop all the clients after midnight?

Hy,

i have a ccr router where all my pppoe clients are, how can i drop them at the same time every day? the only way is the scheduler with a script or there is a setting somewhere in mikrotik to do is?

thanks

You will have to do it with scheduler and script:
/ppp active remove [/ppp active find service=pppoe]

thank you! i have made a script too, it works!

/ppp active
:foreach pppoe in=[find] do={
:local name [get $pppoe name]
:log error $name
remove $pppoe}

if you disable and enable the pppoe server interface? does it disconnect the clients?

Yes it will