client.vault.delete
Delete a vault secret.
Signature
class Client {
vault: {
delete(projectId: string, name: string): Promise<{ deleted: boolean; name: string }>
}
}
Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
| | yes | Project ID |
| | yes | Secret name |
Throws
| Error | Condition |
|---|---|
| Secret does not exist |
Examples
import { Client } from '@blueforge/client'
const bf = new Client({ apiKey: process.env.BF_API_KEY!, url: 'https://your-project.blueforge.dev' })
await bf.vault.delete('proj_abc', 'API_KEY')
Pitfalls
- Irreversible — deletion is permanent; ensure no running deployment or application depends on this secret
- Case-sensitive — secret names are case-sensitive; verify the exact name before deleting
- No confirmation — the operation completes immediately without a second confirmation step
See also
{auto-injected}
Tested against
{auto-injected}