name: sbx secret rm
synopsis: Remove a secret
usage: sbx secret rm [-g | SANDBOX] [SERVICE] [flags]
options:
    - name: force
      shorthand: f
      default_value: "false"
      usage: Delete without confirmation prompt
    - name: global
      shorthand: g
      default_value: "false"
      usage: Use global secret scope
    - name: help
      shorthand: h
      default_value: "false"
      usage: help for rm
    - name: registry
      usage: Registry hostname to remove pull credentials for
inherited_options:
    - name: debug
      shorthand: D
      default_value: "false"
      usage: Enable debug logging
example: |4-
      # Remove a global secret
      sbx secret rm -g github

      # Remove a sandbox-scoped secret
      sbx secret rm my-sandbox openai

      # Remove without confirmation prompt
      sbx secret rm -g github -f

      # Remove OpenAI or Anthropic credential(s) from global scope (OAuth and/or API key)
      sbx secret rm -g openai
      sbx secret rm -g anthropic

      # 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 -g --registry ghcr.io -f
see_also:
    - sbx secret - Manage stored secrets
