> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/help-center/help-topics/no-data/connections-expiring-disconnecting/how-to-disconnect-delete-connection.md).

# How do I disconnect a user?

Disconnecting a user is handled **backend-side**, not in the mobile SDK and not from the dashboard.

Call `DELETE /v2/auth/deauthenticateUser` from your server with the `user_id` you want to remove.

A few things to keep in mind:

* The same provider account can be linked to multiple Terra users if authenticated under different `reference_id`s, so deauthenticate the stale one.
* To avoid duplicates, **check existing active connections via List Users** before initiating auth.
