remove all script - radius

Hi.

I have managed to get a sshpt up and running, to execute scripts to multiple routers at once.
It is working fine, and I have 2 files, one with login and another with host ip’s

I am trying to remove all items under /radius and add new ones.

TO add new ones is working, but i need to remove all items first, and i can not find a command to do that.

We have 300+ routers, and their order is not all the same, and some have old disabled items, so I just want to “refresh” everything with the correct order.

Some routers have 3 entries others 6, and the remove command does not work when i use rem 0,1,2,3,4,5 if there is only 3 items.

Is there another way ?

Thanks.

I have now managed to add the correct ppp, hotspot and login radius servers, but i can not find a way to remove old one first.

I just need to remove everything under /radius and then add the new ones, there must be an easy way to do this ?

remove [find] works !!

I dont know allot about scripting, did allot of reading on this topic, i with sshpt ssh into a router and only run a single line, and as I understand there is no way i can remove the old items and add the new ones in a single ssh session, basically a 1 liner.