DELETE
Delete a banking account
Scope:
accounting:banks.writehttps://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
id
stringrequiredBanking 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 deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Banking account not foundapplication/json422Banking account is not archived — call the Archive endpoint firstapplication/json429Rate limit exceededapplication/json