user-manager session Removal

after a long usage of the router, there has been a lot of session used by users and i will like to be removing using script, I have succeeded in printing all the sessions using this script, but i have been unable to remove, can someone help me out.
/tool user-manager session print where terminate-cause=“lost-service”

This did not run, can you look for another solution

:foreach i in=[/user-manager session find where active=no] do { /user-manager session remove $i; }

Necroposting for that???

is better 2+2=4 or 1+2+3+4+5-11=4 ?

/user-manager session remove [find where active=no]