> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/endpoint-security/install-and-manage-endpoints/manage-endpoint-protection/delete-cortex-xdr-agents.md).

# Delete Cortex XDR agents

Delete endpoints from Cortex Cloud tenant views.

If you have an endpoint that you no longer want to track through Cortex Cloud, for example, if the endpoint disconnected from Cortex Cloud, or an endpoint where the Cortex XDR agent was uninstalled, you can delete the endpoint from the Cortex Cloud tenant views.

### Deleting an endpoint triggers the following lifespan flow:

* The endpoint status changes to Deleted , and the license returns immediately to the license pool. After a retention period of 90 days, the agent is deleted from the database and is displayed in Cortex Cloud as Endpoint Name - `N/A (Deleted)`.
* Data associated with the deleted endpoint is displayed in the Action Center tables and in the Causality View for the standard 90-day retention period.
* Alerts that already include the endpoint data at the time of alert creation are not affected.

### Additionally, Cortex Cloud automatically deletes agents after a long period of inactivity.

* Standard agents are deleted after 180 days of inactivity. Where day one is the first 24 hours of continuous inactivity.
* VDI and TS agents are deleted after 6 hours of inactivity.

{% hint style="info" %}
**Note:**

To reinstate an endpoint, you have to uninstall and reinstall the agent.
{% endhint %}

The following workflow describes how to delete the Cortex XDR agent from one or more Windows, Mac, or Linux endpoints.

{% stepper %}
{% step %}
Select Inventory → Endpoints → All Endpoints.
{% endstep %}

{% step %}
Right-click the endpoint you want to remove.

You can also select multiple endpoints if you want to perform a bulk delete.
{% endstep %}

{% step %}
Select Endpoint Control → Delete Endpoint.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-cloud-runtime-security/endpoint-security/install-and-manage-endpoints/manage-endpoint-protection/delete-cortex-xdr-agents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
