# Archiving entities manually

You might want to archive an entity before Cortex does it automatically, e.g. a service you're deprecating. This article covers how to archive and unarchive entities manually, individually or in bulk.

## Archiving an entity via the Cortex UI

Users with the `Archive Entities` permission can archive an entity.

1. From the main sidebar, expand **Catalogs**, then select **All entities**.
2. Select the entity from the Entities list.
3. From the entity's details page, click the **Overflow icon**.<br>

   <div align="left" data-with-frame="true"><figure><img src="/files/GQN7zYPldC9QUt2u4JSH" alt="The Overflow icon on an entity&#x27;s details page." width="563"><figcaption></figcaption></figure></div>
4. Select **Archive entity**.\
   The **Confirm entity archival** window opens.
5. Click **Archive**.\
   The entity is archived.

{% hint style="warning" %}
When an entity is archived, it no longer appears in the Entities list. Refer to [Displaying archived entities in the Entities list](/ingesting-data-into-cortex/entities-overview/entities/archiving-entities.md#displaying-archived-entities-in-the-entities-list).
{% endhint %}

### **Unarchiving an entity via the Cortex UI**

Users with the `Configure Entities` permission can unarchive an entity.

1. From the main sidebar, expand **Catalogs**, then select **All entities**.
2. At the top of the list, click **Display**.<br>

   <div align="left" data-with-frame="true"><figure><img src="/files/wOrInpSpB5jFm4lMGcnO" alt="The &#x27;Show archived&#x27; toggle turned on to include archived entities in the list." width="563"><figcaption></figcaption></figure></div>
3. Toggle on **Show archived**.
4. Select the entity from the Entities list.
5. From the entity's details page, click the **Overflow icon**.<br>

   <div align="left" data-with-frame="true"><figure><img src="/files/lU30RWeZcyhvyHoOlR9g" alt="The Overflow icon on an entity&#x27;s details page." width="563"><figcaption></figcaption></figure></div>
6. Select **Unarchive entity**.\
   The **Confirm entity restoration** window opens.
7. Click **Restore**.\
   The entity is unarchived and moved back into the Entities list.

## Archiving an entity via the Cortex API

Refer to the API documentation on [archiving an entity](/api/readme/catalog-entities.md#put-api-v1-catalog-tagorid-archive) and [unarchiving an entity](/api/readme/catalog-entities.md#put-api-v1-catalog-tagorid-unarchive).


---

# Agent Instructions: 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:

```
GET https://docs.cortex.io/ingesting-data-into-cortex/entities-overview/entities/archiving-entities/archiving-entities-manually.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
