keychain_send_delete
Delete a Bitwarden Send by specifying its ID to remove secure file or text shares from your vault.
Instructions
Delete a Send (bw send delete).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools/registerTools.ts:1078-1101 (handler)Registration and handler for the `send_delete` tool.
`${deps.toolPrefix}.send_delete`, { title: 'Send Delete', description: 'Delete a Send (bw send delete).', annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: true, }, inputSchema: { id: z.string(), }, _meta: toolMeta, }, async (input, extra) => { if (isReadOnly) return readonlyBlocked(); const sdk = await deps.getSdk(extra.authInfo); const result = await sdk.sendDelete(input); return { structuredContent: { result }, content: [{ type: 'text', text: 'OK' }], }; }, ); - src/sdk/keychainSdk.ts:562-573 (handler)Actual implementation of `sendDelete` in the Keychain SDK, which executes the `bw send delete` CLI command.
async sendDelete(input: { id: string }): Promise<unknown> { return this.bw.withSession(async (session) => { const { stdout } = await this.bw.runForSession( session, ['send', 'delete', input.id], { timeoutMs: 60_000, }, ); return this.tryParseJson(stdout); }); }