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