bhatti secret delete
Delete a secret.
Synopsis
bhatti secret delete <name> [-y]
Description
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.
Examples
bhatti secret delete OLD_KEY
Delete secret "OLD_KEY"? [y/N]: y
deleted
# Non-interactive
bhatti secret delete OLD_KEY -y
Options
| Flag | Default | Description |
| ---- | ------- | ----------- |
| -y, --yes | false | Skip confirmation. |
See Global flags for --url, --token, --json, --timing, --data-dir.
See also
bhatti secret list— confirm the right name first- API:
DELETE /secrets/:name