<?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: Uninstall Cortex XDR Agents from endpoints programmatically in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstall-cortex-xdr-agents-from-endpoints-programmatically/m-p/1206463#M7819</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1300974007"&gt;@R.Pan775442&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out on LiveCommunity!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;AFAIK, there is no endpoint API for that. The best method here is to&amp;nbsp;disabled tamper via agent profile and then you can uninstall via python script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to below article as well:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstalling-cortex-xdr/td-p/532157" target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstalling-cortex-xdr/td-p/532157&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 10:28:20 GMT</pubDate>
    <dc:creator>aspatil</dc:creator>
    <dc:date>2025-01-28T10:28:20Z</dc:date>
    <item>
      <title>Uninstall Cortex XDR Agents from endpoints programmatically</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstall-cortex-xdr-agents-from-endpoints-programmatically/m-p/1205148#M7791</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to programmatically uninstall agents from endpoints but are running into dead ends.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Currently, based on the documentation (&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Prevent-Administrator-Guide/Uninstall-the-Cortex-XDR-Agent" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Prevent-Administrator-Guide/Uninstall-the-Cortex-XDR-Agent&lt;/A&gt;), we are only able to uninstall the agent via the&amp;nbsp;&lt;STRONG&gt;Action Center &lt;/STRONG&gt;or&lt;STRONG&gt; Endpoints page&lt;/STRONG&gt;. However, both methods involve an administrator manually triggering the uninstallation process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API documentation does not include an API for uninstalling agents and only contain an API for deleting endpoints (&lt;A href="https://cortex-panw.stoplight.io/docs/cortex-xdr/a9d8c8076ba24-delete-endpoints" target="_blank"&gt;https://cortex-panw.stoplight.io/docs/cortex-xdr/a9d8c8076ba24-delete-endpoints&lt;/A&gt;). However, the endpoint user can just reconnect since the agent was not uninstalled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, I was looking at running scripts to uninstall agents using the API (&lt;A href="https://cortex-panw.stoplight.io/docs/cortex-xdr/7223bea7d2bea-run-script" target="_blank"&gt;https://cortex-panw.stoplight.io/docs/cortex-xdr/7223bea7d2bea-run-script&lt;/A&gt;), however, I could not find any references to any scripts that could be used for uninstallation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any plans to make the uninstallation of agent a part of the public API, or is there a way to enable such for a tenant instance?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Context: I want to programatically uninstall agents from endpoints when certain conditions are fulfiled, by providing a list of endpoint ids to uninstall.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 07:00:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstall-cortex-xdr-agents-from-endpoints-programmatically/m-p/1205148#M7791</guid>
      <dc:creator>R.Pan775442</dc:creator>
      <dc:date>2025-01-23T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Uninstall Cortex XDR Agents from endpoints programmatically</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstall-cortex-xdr-agents-from-endpoints-programmatically/m-p/1206463#M7819</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1300974007"&gt;@R.Pan775442&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out on LiveCommunity!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;AFAIK, there is no endpoint API for that. The best method here is to&amp;nbsp;disabled tamper via agent profile and then you can uninstall via python script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to below article as well:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstalling-cortex-xdr/td-p/532157" target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstalling-cortex-xdr/td-p/532157&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 10:28:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/uninstall-cortex-xdr-agents-from-endpoints-programmatically/m-p/1206463#M7819</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-01-28T10:28:20Z</dc:date>
    </item>
  </channel>
</rss>

