remove namefilter address-list

Hi

Can someone help me with this one

I need a script that removes all the address-list entry’s that starts with “T-”

I’ve tried everything, I cant figure it out

Here is my script that removes everything in my address-list

:foreach counter in=[/ip firewall address-list find ] do={/ip firewall address-list remove $counter}

I need a script that removes all the address-list entry’s that starts with “T-”

/ip firewal address-list remove [find list~“T-”]

Here is my script that removes everything in my address-list

for remove everything in your address list the best way is
/ip firewal address-list remove [find]

thx :slight_smile:

I need a script that removes all the address-list entry’s that starts with “T-”
starts?

this is wrong, this is containing “T-”:
/ip firewal address-list remove [find list~“T-”]use this:

/ip firewal address-list remove [find > where > list~“> ^> T-”]

Thx