Skip to content

feat(settings): add delete organization in danger zone#3246

Open
rafavalls wants to merge 1 commit intomainfrom
rafavalls/delete-org-setting-2
Open

feat(settings): add delete organization in danger zone#3246
rafavalls wants to merge 1 commit intomainfrom
rafavalls/delete-org-setting-2

Conversation

@rafavalls
Copy link
Copy Markdown
Collaborator

What is this contribution about?

Adds a Danger Zone section to the Organization General settings page with a button to permanently delete the current organization. Uses the existing authClient.organization.delete() Better Auth method, shows a confirmation dialog before proceeding, and redirects to / on success.

Screenshots/Demonstration

A "Danger Zone" section appears at the bottom of Settings → Organization → General, with a red-bordered card and a destructive Delete button that opens a confirmation dialog.

How to Test

  1. Go to Settings → Organization → General
  2. Scroll to the bottom — a "Danger Zone" section should be visible
  3. Click Delete — a confirmation dialog should appear showing the org name
  4. Confirm deletion — the organization is deleted and you are redirected to /

Migration Notes

No migrations required.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions
Copy link
Copy Markdown
Contributor

Release Options

Suggested: Minor (2.294.0) — based on feat: prefix

React with an emoji to override the release type:

Reaction Type Next Version
👍 Prerelease 2.293.5-alpha.1
🎉 Patch 2.293.5
❤️ Minor 2.294.0
🚀 Major 3.0.0

Current version: 2.293.4

Note: If multiple reactions exist, the smallest bump wins. If no reactions, the suggested bump is used (default: patch).

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