<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete objects from many policies in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357262#M87747</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could always export the config and delete the references from the xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- DM&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 20:21:53 GMT</pubDate>
    <dc:creator>dmifsud</dc:creator>
    <dc:date>2020-10-19T20:21:53Z</dc:date>
    <item>
      <title>Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357092#M87722</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, an object which has been configured for 130+ policies. What's the best way to remove it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy for object groups but how can to deal with this kind of situation with an easy solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 09:21:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357092#M87722</guid>
      <dc:creator>ChiragP</dc:creator>
      <dc:date>2020-10-19T09:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357186#M87736</link>
      <description>&lt;P&gt;Hello there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using Panorama or a single FW with 130+ policies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not to state the obvious, but if you delete the object, it would delete from all the policies.&lt;/P&gt;
&lt;P&gt;Is this not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think we need additional details of what you are attempting to accomplish.&lt;/P&gt;
&lt;P&gt;Please include screen capture of object(s) in question, and an example policy of what needs to be deleted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 16:55:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357186#M87736</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2020-10-19T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357262#M87747</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could always export the config and delete the references from the xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- DM&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 20:21:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357262#M87747</guid>
      <dc:creator>dmifsud</dc:creator>
      <dc:date>2020-10-19T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357271#M87753</link>
      <description>&lt;P&gt;Hi SteveCantwell,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, my writing is a bit confusing and I should mention in my post i.e. - the device is managed by Panorama.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you are right if I delete an object from the group, It will delete from the 130+ policies and that is what I want because an object is not required any more due to server decom.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the object which I want to delete is configured in both - group and policies. To delete an object from the group is easy but to delete an object from 130+ policies is a bit time-consuming. Because I need to manually go to all 130+ policies and delete the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the ways - To &lt;STRONG&gt;&lt;U&gt;NOT&lt;/U&gt;&lt;/STRONG&gt; go to manually 130+ policies -&amp;gt; find the object that I want to delete and complete the job.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As&amp;nbsp;@&lt;SPAN class=""&gt;&lt;A href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/131231" target="_self"&gt;Dmifsud&lt;/A&gt;&amp;nbsp;mentioned, export xml config is one way but since it is managed by panorama I am not sure how it would work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you once again for the response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 23:21:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357271#M87753</guid>
      <dc:creator>ChiragP</dc:creator>
      <dc:date>2020-10-19T23:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357643#M87785</link>
      <description>&lt;P&gt;Does anyone have any ideas/solutions about my previous post?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 02:06:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357643#M87785</guid>
      <dc:creator>ChiragP</dc:creator>
      <dc:date>2020-10-21T02:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357721#M87800</link>
      <description>&lt;P&gt;I am still confused to be honest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get that the object is part of a group.. if you delete it from the group.. then it is no longer part of the group.&lt;/P&gt;
&lt;P&gt;You would then simply to the (presuming) address object, within the Object tab, and delete the object.&lt;/P&gt;
&lt;P&gt;Wouldn't that delete the object in all policies?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you believe that the object was not created as an address object (or similar) but manually defined in your policies (again... you can add any object, predefined, prior to using the object, or enter an IP on the fly, within the config)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are only 2 suggestions that can be recommended here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Export the Panorama config.&amp;nbsp; Do a search/delete of those elements/objects you do not want.&amp;nbsp; Import back into Panorama.&lt;/P&gt;
&lt;P&gt;From CLI, go into config mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enter "&lt;FONT face="terminal,monaco"&gt;run set cli config-output-format set&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;This will let you see the config in "set" notation.&lt;/P&gt;
&lt;P&gt;From here, do a "show | match (object name)" command, which will show you all lines in the config, where (object name) is being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you export those lines, you could then copy/paste into a document, change the "set (object name)", into a "delete (object name)", and then copy/paste those lines back into the Panorama.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, the first way, where you are just removing the elements from the xml may be a safer bet, if you are comfortable with the CLI.&lt;/P&gt;
&lt;P&gt;As long as the object is not part of the FW local config, you should be OK with modifying the xml.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 12:13:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/357721#M87800</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2020-10-21T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete objects from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/358057#M87839</link>
      <description>&lt;P&gt;Thanks, SteveCantwell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to complete the task through cli using&amp;nbsp;PAN01&amp;gt; set cli config-output-format set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did very similarly what you mentioned (show | match "object that I want to delete" -&amp;gt; copy output into the text (I used visual studio code to adjust the object that I want -&amp;gt; removed set and added delete in the text -&amp;gt; copied it -&amp;gt; paste into the panorama -&amp;gt; went to the GUI -&amp;gt; previewed the changes -&amp;gt; committed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used one more cmd - "run set cli scripting-mode on" to avoid any copy and paste errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try with xml when I get a chance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:08:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-objects-from-many-policies/m-p/358057#M87839</guid>
      <dc:creator>ChiragP</dc:creator>
      <dc:date>2020-10-22T09:08:37Z</dc:date>
    </item>
  </channel>
</rss>

