sbx secret rm
| 内容説明 | Remove a secret |
|---|---|
| 利用方法 | sbx secret rm [SERVICE] [flags] |
Options
| オプション | デフォルト | 内容説明 |
|---|---|---|
--all | Remove every stored secret across all scopes | |
--all-sandboxes | Remove registry credentials injected into every sandbox (requires --registry) | |
-f, --force | Delete without confirmation prompt | |
--registry | Registry hostname to remove pull credentials for | |
--sandbox | Scope the removal to one sandbox (default: all scopes when choosing interactively, global with SERVICE) |
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 |
Examples
# Choose an existing secret to remove with the arrow keys
sbx secret rm
# Remove a global secret
sbx secret rm github
# Remove a sandbox-scoped secret
sbx secret rm openai --sandbox my-sandbox
# Remove without confirmation prompt
sbx secret rm github -f
# Remove OpenAI or Anthropic credential(s) from global scope (OAuth and/or API key)
sbx secret rm openai
sbx secret rm anthropic
# Remove custom secret by specifying the placeholder value
sbx secret rm --placeholder docker-placeholder-value
# Remove registry pull credentials (removes host-only and global entries)
sbx secret rm --registry ghcr.io -f
# Remove only the global (all-sandboxes) registry credential
sbx secret rm --all-sandboxes --registry ghcr.io -f
# Remove every stored secret across every scope (service secrets, custom
# secrets, OAuth tokens, and registry credentials)
sbx secret rm --all
# Remove a cloud custom secret by its name, or by a host it routes
sbx --cloud secret rm api-example-com
sbx --cloud secret rm --host api.example.com