Skip to main content
mulbzh
Explorer
May 14, 2025
Question

Delete addresses objects in CLI

  • May 14, 2025
  • 1 reply
  • 1813 views

hello and sorry for my english,

 

I want in CLI mode delete all addresses objects that begin with particular name : 'Block-IP'

 

I know i can delete objects in config firewall address but how to do mass deletion with begin name ?

 

it is in config firewall address

 

thanks a lot

 

 

1 reply

funkylicious
SuperUser
SuperUser
May 14, 2025

hi,

i dont think it's possible to do so in a mass way, meaning deleting all objects starting with Block-IP*, rather deleting them 1 by 1 .

from the GUI on the other hand you could do so by filtering the objects and then multiple selection.

"jack of all trades, master of none"
mulbzh
mulbzhAuthor
Explorer
May 14, 2025

i don't want to do it in GUI but only in CLI script because it will be script in automation use every week

funkylicious
SuperUser
SuperUser
May 14, 2025

if you script it, then do a show firewall address | grep Block-IP and then line by line do a delete of the object name found with it.

"jack of all trades, master of none"