---
title: "Delete an unused invoice payment account"
method: DELETE
path: "/bank-accounts/{bankAccountId}"
tags: ["Bank Accounts"]
---

# Delete an unused invoice payment account

`DELETE /bank-accounts/{bankAccountId}`

## Request

- Base URL: `https://api.vocal.email/v1`
- URL: `https://api.vocal.email/v1/bank-accounts/{bankAccountId}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api/docs/bank-accounts/:bankAccountId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Deleted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `409`: Account is referenced by invoices
- `500`: Internal Server Error

---

[API](https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api.md) - [All operations](https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vocal/apis/magic-heidi-invoicing-software-api/revisions/d0319ad57804?raw)
