Skip to main content
DELETE

Delete a banking account

Scope:accounting:banks.write
https://api.holded.com/api/v2/treasury/accounts/{id}

Permanently deletes a banking account. The account must be archived first via the `Archive a banking account` endpoint — attempting to delete a non-archived account returns 422. Deletion is irreversible: associated transactions are removed and cannot be recovered. If you want to hide the account while preserving its transaction history, archive it without deleting.

Parameters

Path parameters

idstringrequired

Banking account identifier

Request

python
import requests

url = "https://api.holded.com/api/v2/treasury/accounts/{id}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.delete(url, headers=headers)
print(response.json())

Responses

Success responses

204Banking account deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Banking account not foundapplication/json
422Banking account is not archived — call the Archive endpoint firstapplication/json
429Rate limit exceededapplication/json