---
title: "Delete an Account"
method: DELETE
path: "/rest/accounts/{account_id}"
tags: ["Accounts"]
---

# Delete an Account

`DELETE /rest/accounts/{account_id}`

## Request

- Base URL: `https://api.dailypay.com`
- URL: `https://api.dailypay.com/rest/accounts/{account_id}`
- Auth: OAuth 2
  - Authorization code: `https://auth.dailypay.com/oauth2/auth`
  - Token URL: `https://auth.dailypay.com/oauth2/token` scopes: `user:read_write`
- TypeScript: <https://skmtc.dev/dailypay/apis/dailypay-rest-api/docs/rest/accounts/:account_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a previously added DEPOSITORY or CARD account. EARNINGS_BALANCE accounts cannot be deleted.

## Response `204`

Account successfully deleted

## Other responses

- `400`: Bad Request
- `401`: Invalid authentication credentials
- `403`: Not authorized to perform this operation
- `404`: Resource was not found
- `500`: Unexpected error occured

---

[API](https://skmtc.dev/dailypay/apis/dailypay-rest-api.md) - [All operations](https://skmtc.dev/dailypay/apis/dailypay-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dailypay/apis/dailypay-rest-api/revisions/24f4c159e842?raw)
