Skip to main content
mulbzh
Explorer
May 14, 2025 6:19 AM UTC
Question

Delete addresses objects in CLI

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

 

 

7 replies

funkylicious
SuperUser
SuperUser
May 14, 2025 6:31 AM UTC

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.

Translate
"jack of all trades, master of none"
mulbzh
mulbzhAuthor
Explorer
May 14, 2025 6:34 AM UTC

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

Translate
funkylicious
SuperUser
SuperUser
May 14, 2025 6:40 AM UTC

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.

Translate
"jack of all trades, master of none"
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024