---
title: "axiom memory rm"
description: "Delete a session or all memory for a flow"
category: reference
surfaces: [cli]
related: [reference/cli/axiom-memory, guides/inspect-agent-memory]
last_reviewed: 2026-06-06
---

<!-- GENERATED by docs/scripts/gen-cli-reference — DO NOT EDIT.
     Source of truth: the cobra command definitions in cmd/axiom/cmd/.
     Regenerate from the repo root with: go run ./docs/scripts/gen-cli-reference -->

# axiom memory rm

Delete a session or all memory for a flow

Delete a session or, with --flow and --all, delete all memory for a flow.

```text
axiom memory rm <session-id>           deletes a single session
axiom memory rm --flow <id> --all      deletes all memory for the flow
```

All data is permanently deleted. Use --yes to skip the confirmation prompt.

Examples:
```text
axiom memory rm 01HXYZ1234ABCDEF
axiom memory rm --flow my-flow-id --all
```

## Usage

```sh
axiom memory rm [<session-id>] [flags]
```

## Flags

| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
| `--all` |  | bool |  | delete all memory for the specified flow |
| `--flow` |  | string |  | flow ID (use with --all to delete all flow memory) |
| `--help` | `-h` | bool |  | help for rm |
| `--yes` |  | bool |  | skip confirmation prompt |

## See also

- [axiom memory](./axiom-memory.md) — Inspect and manage agent memory for your flows
- Guide: [Inspect agent memory](../../guides/inspect-agent-memory.md)
