Remove active PPP connection (L2TP, PPTP etc) on Mikrotik using a script

If you ever have the need to only allow PPP connection(s) (L2TP, PPTP etc) for a certain time period, you can use the below in a script or add directly to a schedule to terminate a PPP user that has an active connection.

Replace user.name with the actual name

/ppp active remove [/ppp active find name=user.name]