> 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-xsoar-8-saas/investigate-and-respond-to-threats/incidents-and-indicators-investigation/investigate-an-incident/retain-incidents.md).

# Retain incidents

Retain incidents in Cortex XSOAR 8 SaaS.

By default, Cortex XSOAR keeps incidents for 6 months. The retention period is calculated from when the incident was created in Cortex XSOAR. For more information about the retention policy and how to extend retention, see [Cortex XSOAR 8 Retention Policy FAQs](/cortex-xsoar-8-retention-policy/cortex-xsoar-8-retention-policy-faqs/readme.md).

{% hint style="info" %}

### Note

Up to 1,000 incidents per tenant can be excluded from the incident retention policy. Retained incidents are not deleted. If you reach 1000 retained incidents, you won't be able to exclude additional incidents from the retention policy unless you disable incident retention for some or all of your existing retained incidents.
{% endhint %}

Only user roles that have retain incident permissions can retain or undo incident retention. For more information, see [The Components tab](/cortex-xsoar-8-saas/configure-cortex-xsoar/users-and-roles-management/roles-management/role-based-permissions-in-cortex-xsoar.md).

<details>

<summary>Retain an incident</summary>

1. On the **Incidents** page, click the incident you want to retain.
2. From the **Actions** dropdown button in the selected incident's page, select **Retain Incident**.

To disable retention for an incident, select **Undo Retain Incident** from the **Actions** menu.

</details>

<details>

<summary>Bulk retain incidents</summary>

1. From the **Incidents** page, select the incidents to retain.
2. Click **Retention** → **Retain**.

To disable retention for a group of incidents, select the incidents in the Incidents page and click **Retention** → **Undo Retain**.

</details>

<details>

<summary>Search for retained incidents</summary>

To search for retained incidents in the Incidents search bar, use the `retained` field, with `T` (True) or `F` (False). You can also add the **Retain Incident** field to the Incidents table to easily view which incidents are retained.

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-saas/investigate-and-respond-to-threats/incidents-and-indicators-investigation/investigate-an-incident/retain-incidents.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
