Repository navigation
add a settings page with delete account - #108
Merged
Merged
Conversation
Deleting an account undoes each connection at its provider first, as disconnecting does, then deletes the user and their organization with everything in it, and signs out. The dialog asks for the account's address before it deletes anything.
hkonsti
force-pushed
the
hkonsti/delete-account
branch
from
October 15, 2026 20:11
e71ac98 to
2708fc4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A Settings page (gear in the sidebar footer,
/settings) showing the account's email and name, with Delete account.Deleting asks for the account's email address typed again, then calls
DELETE /api/me, which:beforeDisconnectthat disconnecting one uses (Google's grant is revoked today; a bank's login will be removed at Plaid once the Plaid integration lands on top of this, with no change here);deleteUser), whose cascades take connections and their credentials, Information, agents and their logins, MCP clients, the activity log and sessions; it now also deletes sign-in links still waiting for the address;/login.A provider that can't be reached is logged and doesn't stop the deletion, as when disconnecting.
The privacy policy and terms now say an account can be deleted in Settings as well as by email, and the legal pages' effective date moves to October 15, 2026.
Why
The Data Retention and Disposal Policy for Plaid's review promises that deleting an account removes its bank logins at Plaid first. Until now deletion was manual, and deleting the user directly would have left connections active at their providers.
Tested
DELETE /api/metests: order (connections undone, then the user), a failed deletion keeps the session, a user without an organization./login,/api/meanswers 401, no session cookie left.bun run typecheck,bun run test,bun run lint, website build.