Delete a banking account
Scope: accounting:banks.write https://api.alladdin.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 string required
Banking account identifier
Request
import requests
url = "https://api.alladdin.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
204 Banking account deleted
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Banking account not found application/json 422 Banking account is not archived — call the Archive endpoint first application/json 429 Rate limit exceeded application/json
