# Trash and removal · what's kept

Archiving is the default removal: the item leaves the active list, keeps its links and can be unarchived. A Capture goes to Trash. Only a Mindmap branch is deleted for good.

Checked 2026-12-02 · https://xale.app/docs/ai/trash-and-removal-what-s-kept

## What each removal does

| `action` | Item | What happens | What the person is told |
| --- | --- | --- | --- |
| `archive_task` | Task | Archived | “It can be unarchived in Xale.” |
| `archive_milestone` | Milestone | Archived | “It can be unarchived in Xale.” |
| `archive_mindmap` | Mindmap | Archived | “It can be unarchived in Xale.” |
| `archive_note`, `archive_list`, `archive_meeting` | Note, List, Meeting | Archived | “It can be unarchived in Xale.” |
| `archive_habit` | Habit | Archived | “It can be unarchived in Xale.” |
| `archive_capture` | Capture | Moved to Trash | “It can be restored from Trash in Xale.” |
| `delete_mindmap_branch` | A Mindmap node and everything under it | Deleted | “This can't be undone.” |

Archiving sets exactly what the app's own **Archive** sets: the item moves out of the active list and keeps its links. Prefer it to removing.

Every removal is two steps: `xale_prepare_removal` previews it and returns a `removalId` (valid 30 minutes), and `xale_confirm_removal` removes exactly what was previewed, with the person's words in `personSaid`. If the item changed in between, nothing is removed and you prepare again. See [Removals · only when allowed](https://xale.app/docs/ai/removals-only-when-allowed).

## Putting a Project away

Set its `status` to `done` or `abandoned` with `xale_update_project`. A status change isn't a removal.

## Trash is never read

An item in Trash (`deletedAt` set, or `state` `deleted` or `trashed`) is never returned by any read, and a write naming it answers “Nothing with that id is available in this Xale.” The person restores it in Xale.

## Archived items in reads

| Read | Archived items |
| --- | --- |
| `xale_read_today`, `xale_read_habits` | Archived Habits are left out |
| `xale_find_captures` | Left out unless you send `includeArchived: true` |
| `xale_find_notes`, `xale_find_memories` | Only active items are listed, so archived Notes, Lists and Meetings are left out |
| `xale_read_note` by id | Returns the item with its `state` |

Before suggesting an item, check it isn't archived.

## Related

- For people: [How do I restore deleted notes in Xale?](https://xale.app/help/trash-restore-deleted-items)
- For people: [How do I let Claude remove things in Xale?](https://xale.app/help/removals-by-ai-how-to-allow)
- For people: [How long does Xale keep my data?](https://xale.app/help/data-retention-what-we-keep)
- Tools: [xale_prepare_removal](https://xale.app/docs/ai/tools/xale_prepare_removal)
- Tools: [xale_confirm_removal](https://xale.app/docs/ai/tools/xale_confirm_removal)
- Read next: [Removals · only when allowed](https://xale.app/docs/ai/removals-only-when-allowed)
- Read next: [Hidden items · Trash and kept-away Areas](https://xale.app/docs/ai/hidden-items-trash-and-kept-away-areas)
