Skip to content

Commit ec7ccef

Browse files
authored
Merge pull request #25788 from dvdksn/codex/document-sbx-prune
docs: document sbx prune cleanup
2 parents 3d090ef + 1b4f8de commit ec7ccef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

content/manuals/ai/sandboxes/usage.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ $ sbx rm my-sandbox
4848
$ sbx run claude
4949
```
5050

51+
To remove all stopped local sandboxes, use `sbx prune`. Running sandboxes are
52+
never removed. Preview the sandboxes that would be removed, or filter out
53+
sandboxes stopped within the last week:
54+
55+
```console
56+
$ sbx prune --dry-run
57+
$ sbx prune --filter since=168h
58+
```
59+
60+
Run `sbx prune` without flags to confirm and remove all stopped sandboxes.
61+
5162
## Reconnect and name sandboxes
5263

5364
Sandboxes persist after the agent exits. Running the same workspace path again

0 commit comments

Comments
 (0)