Skip to content

bhatti secret delete

Delete a secret.

bhatti secret delete <name> [-y]

Removes the secret from the encrypted store. Cannot be undone.

By default, prompts for confirmation. In a non-interactive shell without -y, the command refuses and exits 1.

Sandboxes that already have the secret resolved into their environment keep running with the value they got at boot. Future creates that reference the deleted secret will fail with secret "<name>" not found.

Terminal window
bhatti secret delete OLD_KEY
Delete secret "OLD_KEY"? [y/N]: y
deleted
Terminal window
# Non-interactive
bhatti secret delete OLD_KEY -y
FlagDefaultDescription
-y, --yesfalseSkip confirmation.

See Global flags for --url, --token, --json, --timing, --data-dir.