delete_wallet
Remove a wallet from active use by soft-deleting it, making it invisible in listings and unusable for transactions while preserving data.
Instructions
Delete (soft-delete) a wallet. The wallet will no longer appear in listings and cannot be used for transactions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Wallet ID to delete |
Implementation Reference
- src/index.ts:1203-1216 (handler)The delete_wallet tool implementation: registers the tool with server.tool(), defines the schema (wallet_id parameter using Zod), and provides the handler function that makes a DELETE API call to /wallets/{wallet_id} endpoint.
// ─── Tool: delete_wallet ───────────────────────────────────────── server.tool( 'delete_wallet', 'Delete (soft-delete) a wallet. The wallet will no longer appear in listings ' + 'and cannot be used for transactions.', { wallet_id: z.number().int().describe('Wallet ID to delete'), }, async ({ wallet_id }) => { const data = await api(`/wallets/${wallet_id}`, 'DELETE'); return jsonResponse(data); }, );