mirror of
https://github.com/docker/docs.git
synced 2026-10-28 07:15:09 +03:00
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: sbx secret rm
|
|
synopsis: Remove a secret
|
|
usage: sbx secret rm [SERVICE] [flags]
|
|
options:
|
|
- name: all-sandboxes
|
|
default_value: "false"
|
|
usage: |
|
|
Remove registry credentials injected into every sandbox (requires --registry)
|
|
- name: force
|
|
shorthand: f
|
|
default_value: "false"
|
|
usage: Delete without confirmation prompt
|
|
- name: help
|
|
shorthand: h
|
|
default_value: "false"
|
|
usage: help for rm
|
|
- name: registry
|
|
usage: Registry hostname to remove pull credentials for
|
|
- name: sandbox
|
|
usage: 'Scope the removal to one sandbox (default: global)'
|
|
inherited_options:
|
|
- name: debug
|
|
shorthand: D
|
|
default_value: "false"
|
|
usage: Enable debug logging
|
|
example: |4-
|
|
# 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
|
|
see_also:
|
|
- sbx secret - Manage stored secrets
|