BlueForge Docs

client.vault.delete

Delete a vault secret.

Signature

class Client {
  vault: {
    delete(projectId: string, name: string): Promise<{ deleted: boolean; name: string }>
  }
}

Parameters

NameTypeRequiredNotes
projectId
string
yesProject ID
name
string
yesSecret name

Throws

ErrorCondition
NotFoundError
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}