Skip to content

Delete organization from settings#1340

Merged
RhysSullivan merged 5 commits into
mainfrom
rs/delete-organization
Jul 8, 2026
Merged

Delete organization from settings#1340
RhysSullivan merged 5 commits into
mainfrom
rs/delete-organization

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Adds an admin-only way to permanently delete an organization from Organization settings.

Deleting requires re-typing the org name to confirm. It removes the org in WorkOS, cancels the Autumn customer, and purges all of the org's tenant data and secrets in one transaction, then clears the caller's session so everyone drops out of the workspace.

Proven by a new cloud e2e (e2e/cloud/org-delete.test.ts): create org, open settings, confirm-gated delete, org torn down. Needs the WorkOS emulator's org-delete route, shipped in @executor-js/emulate 0.13.3.

Admins can permanently delete their organization from Organization settings.
Deletion tears down WorkOS, cancels the Autumn customer, and purges all tenant
data and secrets in one transaction, then clears the caller's session. Requires
re-typing the org name to confirm.
The danger-zone admin check now also requires an active membership (a pending
admin invite no longer surfaces the delete control). If the local purge fails
after the WorkOS org delete already succeeded, log an error so the orphaned
tenant data and secrets get swept.
@effect/vitest's expect has no Playwright toBeDisabled/toBeEnabled matchers.
The success path hard-navigates and the SSR gate redirects, which aborts
waitForURL; wait for the danger zone to detach instead.
The WorkOS org delete route lands in emulate 0.13.3.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing d6e890d Commit Preview URL

Branch Preview URL
Jul 07 2026, 12:13 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud d6e890d Jul 07 2026, 12:14 AM

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Jul 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1340

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1340

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1340

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1340

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1340

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1340

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1340

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1340

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1340

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1340

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1340

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1340

executor

npm i https://pkg.pr.new/executor@1340

commit: d6e890d

@RhysSullivan RhysSullivan marked this pull request as ready for review July 8, 2026 01:51
@RhysSullivan RhysSullivan merged commit 857f45d into main Jul 8, 2026
32 of 34 checks passed
@RhysSullivan RhysSullivan deleted the rs/delete-organization branch July 8, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant