sbx rm
| 内容説明 | Remove one or more sandboxes |
|---|---|
| 利用方法 | sbx rm [SANDBOX...] [flags] |
Description
Remove one or more sandboxes and all associated resources. Or — with --cloud — the cloud sandbox ID (sbx_*) or name from "sbx --cloud ls".
For local sandboxes, stops them, removes their containers, cleans up any Git worktrees, deletes sandbox state, and deletes secrets scoped to each removed sandbox. This action cannot be undone. With --cloud, deletes the sandbox in Docker Sandboxes Cloud. This action cannot be undone. Once the server accepts the request, rm waits up to 60 seconds per sandbox for the deletion. A removal still completing after that exits 0. Verify it later with "sbx --cloud ls".
Removal requires confirmation; use --force to skip confirmation prompts (for non-interactive scripts) and to delete a sandbox that is in use (e.g. an open SSH connection). Use --all to remove every sandbox. With --cloud, --all is intentionally disabled as a safety gate — the blast radius covers every sandbox the credential can see, which may include shared or production workloads. Pass IDs explicitly in --cloud mode.
Options
| オプション | デフォルト | 内容説明 |
|---|---|---|
--all | Remove all sandboxes | |
-f, --force | Skip confirmation prompts and delete even if in use (e.g. an open SSH connection) |
Global options
| オプション | デフォルト | 内容説明 |
|---|---|---|
--cloud | Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list) | |
-D, --debug | Enable debug logging |