Deleting Accounts

Deleting an account can be done with the following request.

DELETE https://driftapi.com/accounts/{accountId}

ex: DELETE https://driftapi.com/accounts/123458_domain.com

A successful request will result in a 200 response with a body similar to the following.

{
    "result": "OK",
    "ok": true
}

Attempting to delete an already-deleted account will result in a request error.

🚧

A note on Deletes

Note that deletes are never true deletes from the Drift system. Deleting an account will hide it from the list view in Drift, but you can still query the account by ID later on. In this case, the account will return in the response with a deleted: true field.

Deleting accounts requires the account_write scope.