Delete all Address Objects

Reply
Highlighted
L3 Networker

Delete all Address Objects

Hello,

I have >600 Address objects on a Lab firewall and I am looing for a way to delete them all.  The web interface does not contain a select all tick box for individual address objects (mind-blowing.. why not??)...  Anyone know of a CLI command that will do it?

 

Thanks!

Matt

Highlighted
L4 Transporter

Hello Matt,

 

You can try exporting the configuration and just manually deleting the XML? You can also hold down control and tick the check boxes next to the address to select multiple address.

 

hope this helps,

Ben

Highlighted
L2 Linker

(duplicate - bmorris1 beat me by 36secs - i must be slipping..) 

 

- export the config in XML

- delete the objects section

- import the config back into the firewall, load, commit.

 

no, it's not a checkbox but it's doable in under 5mins.

 

c

Highlighted
L3 Networker

Thanks guys!  Was trying to avoid having to do that because I have had some undesireable results playing around with the XML in the past.  Still baffled why PA wouldn't include this as an option.. makes no sense to me :)

Highlighted
L2 Linker

You can shift-click to select multiple objects.

 

So click on the first object, then scroll all the way to the bottom, then hold shift while you click the last object.  That should select all of the objects, then you can click delete.

Highlighted
L2 Linker

just make sure you are using a real editor like Notepad++ or SublimeText

 

XML is your friend!

Highlighted
L5 Sessionator

Hi Matt,

 

EDIT - Bradley already responded with the easiest way from GUI: holding "shift" and selecting first and last should select all items in between, at least that's what works for me from the latest SeaMonkey (firefox-like browser but without DRM built-in)

 

otherwise - smash the xml in editor of your choice as gentleman noted :)

 

Regards

 

L.

 

p.s. I vote for vim even though I use both npp and sublime in GUIs :)))))

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!