delete_secret
Delete a secret from an environment, discarding its ciphertext and every version. Irreversible — restore_secret CANNOT bring it back (that only rolls back within a surviving secret's history), and re-creating it means setting the value again on the local crypto plane. Prefer restore_secret to undo a bad write. Confirm intent before calling. Returns { ok, name }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Application slug or id, as returned by list_apps (e.g. "storefront"). | |
| env | Yes | Environment slug or id within that application, as returned by list_envs (e.g. "production"). | |
| org | No | Organization slug or id. Omit it when the credential can reach exactly one org — that org is used automatically. With several, the error names every slug you may pass; list them yourself with list_orgs. | |
| name | Yes | The secret's name — the variable name it is injected as, e.g. "DATABASE_URL". Names come from list_secrets; this is never a value. |