mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
docs: Removing sessions (#2438)
This commit is contained in:
@@ -139,6 +139,34 @@ goose session list --verbose
|
||||
# List sessions in JSON format
|
||||
goose session list --format json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### session remove [options]
|
||||
|
||||
Remove one or more saved sessions.
|
||||
|
||||
**Options:**
|
||||
- **`-i, --id <id>`**: Remove a specific session by its ID
|
||||
- **`-r, --regex <pattern>`**: Remove sessions matching a regex pattern. For example:
|
||||
|
||||
**Usage:**
|
||||
|
||||
```bash
|
||||
# Remove a specific session by ID
|
||||
goose session remove -i 20250305_113223
|
||||
|
||||
# Remove all sessions starting with "project-"
|
||||
goose session remove -r "project-.*"
|
||||
|
||||
# Remove all sessions containing "migration"
|
||||
goose session remove -r ".*migration.*"
|
||||
```
|
||||
|
||||
:::caution
|
||||
Session removal is permanent and cannot be undone. Goose will show which sessions will be removed and ask for confirmation before deleting.
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### info [options]
|
||||
|
||||
@@ -160,6 +160,10 @@ You can resume a CLI session in Desktop and vice versa.
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Remove Sessions
|
||||
|
||||
You can remove sessions using CLI commands. For detailed instructions on session removal, see the [CLI Commands documentation](/docs/guides/goose-cli-commands#session-remove-options).
|
||||
|
||||
## Search Within Sessions
|
||||
|
||||
Search allows you to find specific content within your current session. The search functionality is available in both CLI and Desktop interfaces.
|
||||
|
||||
Reference in New Issue
Block a user