René's URL Explorer Experiment


Title: feat(account): let users delete their own account by waleedlatif1 · Pull Request #6831 · simstudioai/sim · GitHub

Open Graph Title: feat(account): let users delete their own account by waleedlatif1 · Pull Request #6831 · simstudioai/sim

X Title: feat(account): let users delete their own account by waleedlatif1 · Pull Request #6831 · simstudioai/sim

Description: Summary Adds self-serve account deletion for GDPR: Settings → General → Account → Delete, behind a confirmation dialog that requires retyping the account email. GET /api/users/me/deletion previews what deletion removes; POST performs it. Both go through an application use case, session-only — an API key or delegated service can never erase the account behind it. Deletion refuses while the account is still entangled instead of reassigning its content. Most tables reference user.id with ON DELETE CASCADE, and those cascades don't distinguish content in your own workspace from content you created inside someone else's — so each blocker names the existing action that untangles it (leave the workspace, leave the organization, cancel the plan), all of which already hand work over on their own tested paths. Blockers: sole owner of a paid org, organization membership, active paid plan, workspaces shared with others, org-owned workspaces, and data drains you created. For an ordinary individual account there are none and it's a single dialog. Ordering is load-bearing: workspace.billed_account_user_id is NO ACTION and Postgres evaluates it before the owner_id cascade that would remove the same workspace, so anchored workspaces are torn down or handed over before the user row is touched. Stored objects are purged before the rows. The retention sweep is driven entirely by rows the cascade deletes, so without this every file, document and KB object would be orphaned in storage permanently — the opposite of what an erasure request means. Better Auth's own deleteUser stays disabled and its beforeDelete now refuses unconditionally, so there is exactly one deletion path and flipping the flag can't route around the preflight, purge, teardown or audit. Records an account.deleted audit entry with no actor identity — a compliance record that doesn't retain the person who just exercised their right to erasure. Adds disabledTooltip to ChipConfirmAction so a blocked confirmation can state its own remedy. Type of Change New feature Testing Tested manually. 16 unit tests covering the classifier (every blocker, both workspace buckets, name formatting) and the use case (email confirmation, non-session principals); verified the suite fails when the classifier is broken. turbo run type-check, bun run lint, bun run check:audits (29/29) and the emcn chip-modal suite all pass. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds self-serve account deletion for GDPR: Settings → General → Account → Delete, behind a confirmation dialog that requires retyping the account email. GET /api/users/me/deletion previews...

X Description: Summary Adds self-serve account deletion for GDPR: Settings → General → Account → Delete, behind a confirmation dialog that requires retyping the account email. GET /api/users/me/deletion previews...

Opengraph URL: https://github.com/simstudioai/sim/pull/6831

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bc6a7332-a9cf-622a-cce0-d15f071bd599
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87F4:CEB06:346728:498867:6AFB56BF
html-safe-nonced88e7d45a36d9a6cc11b012ecc6fc0b50068466b97b151c3e387983ed1b08001
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0Y0OkNFQjA2OjM0NjcyODo0OTg4Njc6NkFGQjU2QkYiLCJ2aXNpdG9yX2lkIjoiMTg5MzA0MDUxODY0MDM5MTg3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc587977834f69fa1bdba695f1632dec854944be760c1347440d0f6b4cf984517
hovercard-subject-tagpull_request:4309409340
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6831/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Adds self-serve account deletion for GDPR: Settings → General → Account → Delete, behind a confirmation dialog that requires retyping the account email. GET /api/users/me/deletion previews...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6831/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6831%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6831%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6831/files
Reloadhttps://github.com/simstudioai/sim/pull/6831/files
Reloadhttps://github.com/simstudioai/sim/pull/6831/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/gdpr-account-deletionhttps://github.com/simstudioai/sim/tree/feat/gdpr-account-deletion
Conversation 24 https://github.com/simstudioai/sim/pull/6831
Commits 3 https://github.com/simstudioai/sim/pull/6831/commits
Checks 30 https://github.com/simstudioai/sim/pull/6831/checks
Files changed https://github.com/simstudioai/sim/pull/6831/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
feat(account): let users delete their own account https://github.com/simstudioai/sim/pull/6831/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/6831/files
5220093 feat(account): let users delete their own account waleedlatif1 Aug 18, 2026 https://github.com/simstudioai/sim/pull/6831/commits/522009374767ae6279b0189ef02fba65a01f1d25
ff11ed6 fix(account): make deletion atomic and re-check privacy at delete time waleedlatif1 Aug 19, 2026 https://github.com/simstudioai/sim/pull/6831/commits/ff11ed6402b90ab6f25cb70024542041cb1d3f65
1f06819 fix(account): close deletion gaps found in review waleedlatif1 Aug 19, 2026 https://github.com/simstudioai/sim/pull/6831/commits/1f06819572642cb7f531697a1f13438830404330
Clear filters https://github.com/simstudioai/sim/pull/6831/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
route.ts https://github.com/simstudioai/sim/pull/6831/files#diff-636fbb53aade8e8185ec949b7aa8c2ea45a56542778d9091b6115dd522ecbc81
delete-account-modal.tsx https://github.com/simstudioai/sim/pull/6831/files#diff-5c227b26525e255e8b29b884d48a7787ae4dbf2115e9f8e0688fb4bd4ebe5511
general.tsx https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
account-deletion.ts https://github.com/simstudioai/sim/pull/6831/files#diff-4dfca8ea79ca8d346731694481282c975b563d5845d98c5524d925318148f2b0
user.ts https://github.com/simstudioai/sim/pull/6831/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
auth.ts https://github.com/simstudioai/sim/pull/6831/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
account-deletion.test.ts https://github.com/simstudioai/sim/pull/6831/files#diff-208469782514289a9e13e0c8cb257775249543a216ca72c407997bd2118bbc7c
account-deletion.ts https://github.com/simstudioai/sim/pull/6831/files#diff-0ad7b582145ede5bc28a9b4d0fdc670303e35dfff9f0be64a9750358c65b509b
delete-account.test.ts https://github.com/simstudioai/sim/pull/6831/files#diff-8c34c06c12c3e507e2f83a656a58d7db721396fad4ee4149781922ec865d94b6
delete-account.ts https://github.com/simstudioai/sim/pull/6831/files#diff-7d5426abc01907607fc6492b236cfcda747ca84d85ba30a7a1e46482da628eea
operations.ts https://github.com/simstudioai/sim/pull/6831/files#diff-f06bce9c6bb414caccefe7c2214027694e8802fbae798e82665f74e5ca8a2cfa
utils.ts https://github.com/simstudioai/sim/pull/6831/files#diff-fa76b3df77f49bc098b6ea6651afc02ec839b7472c00b52633e155a0189b3bb4
types.ts https://github.com/simstudioai/sim/pull/6831/files#diff-0c4c4527875ffe443d3b9bc35837c1dfb53d8918c2751deafbc08896fd8d5731
chip-modal.tsx https://github.com/simstudioai/sim/pull/6831/files#diff-5a9b4f39d866e7b9c8f3be78802e723f27cc7f87c964fbe55e19d16a69b91f54
audit.mock.ts https://github.com/simstudioai/sim/pull/6831/files#diff-ddbf3f281bccb1e55eb3765c29403087addedc24fb5f99c437c69a9a412c1e91
check-api-validation-contracts.ts https://github.com/simstudioai/sim/pull/6831/files#diff-48ae6a4d0c1f820d5b644522d25742bb29af758bc8350f1a3cf3f8afa0bd00b0
apps/sim/app/api/users/me/deletion/route.tshttps://github.com/simstudioai/sim/pull/6831/files#diff-636fbb53aade8e8185ec949b7aa8c2ea45a56542778d9091b6115dd522ecbc81
View file https://github.com/simstudioai/sim/blob/1f06819572642cb7f531697a1f13438830404330/apps/sim/app/api/users/me/deletion/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6831/{{ revealButtonHref }}
...p/workspace/[workspaceId]/settings/components/general/components/delete-account-modal.tsxhttps://github.com/simstudioai/sim/pull/6831/files#diff-5c227b26525e255e8b29b884d48a7787ae4dbf2115e9f8e0688fb4bd4ebe5511
View file https://github.com/simstudioai/sim/blob/1f06819572642cb7f531697a1f13438830404330/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/general/components/delete-account-modal.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6831/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
apps/sim/app/workspace/[workspaceId]/settings/components/general/general.tsxhttps://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
View file https://github.com/simstudioai/sim/blob/1f06819572642cb7f531697a1f13438830404330/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/general/general.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6831/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
https://github.com/simstudioai/sim/pull/6831/files#diff-1399306bf79ad53ce246baccbfae7d3037e74a2b52fc447a212261f6d1940867
apps/sim/hooks/queries/account-deletion.tshttps://github.com/simstudioai/sim/pull/6831/files#diff-4dfca8ea79ca8d346731694481282c975b563d5845d98c5524d925318148f2b0
View file https://github.com/simstudioai/sim/blob/1f06819572642cb7f531697a1f13438830404330/apps/sim/hooks/queries/account-deletion.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6831/{{ revealButtonHref }}
apps/sim/lib/api/contracts/user.tshttps://github.com/simstudioai/sim/pull/6831/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
View file https://github.com/simstudioai/sim/blob/1f06819572642cb7f531697a1f13438830404330/apps/sim/lib/api/contracts/user.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6831/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6831/files#diff-095f7a2d1473a6ce47da4b69d1c8ded6cf538a9c9a9f8d2957dc5539d16b827c
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6831/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.