Script to disconnect and remove from active connection pppoe user

Hi All

I want Script to disconnect and remove user from active connection pppoe user in profile

I have Script it for hotspot user like this

/ip hotspot user disable [find
profile="profile"]
delay 5
:foreach i in=[/ip hotspot user find disabled=yes] do={/ip hotspot active remove [find user=[/ip hotspot user get $i name]]}

Can anyone modify it to be compatible with PPPOE user

Thanks for all