Share feedback
Answers are generated based on the documentation.

sbx secret rm

内容説明Remove a secret
利用方法sbx secret rm [SERVICE] [flags]

Options

オプションデフォルト内容説明
--allRemove every stored secret across all scopes
--all-sandboxesRemove registry credentials injected into every sandbox (requires --registry)
-f, --forceDelete without confirmation prompt
--registryRegistry hostname to remove pull credentials for
--sandboxScope the removal to one sandbox (default: all scopes when choosing interactively, global with SERVICE)

Global options

オプションデフォルト内容説明
--cloudDispatch 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, --debugEnable 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