Toshl Developer

Delete account

Delete an account.

Some related data is updated asynchronously. Clients can set an additional GET parameter immediate_update which dictates that those values should be updated immediately in current request. Such a request may take longer to complete.

If the account is the only account it cannot be deleted.

The entries are moved to default account

If account is the default one another account with the highest balance is selected to be default.

DELETE /accounts/{id}

Required scope:

Parameters

id
required
string

Account id.

Request

$ curl https://api.toshl.com/accounts/42 \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -X DELETE

Response

HTTP/1.1 204 No Content