[GH-ISSUE #1348] When deleting user, organizations created by the user should also be deleted if org has only single owner #8702

Closed
opened 2026-04-13 03:52:00 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @RakeshPotnuru on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1348

Is this suited for github?

  • Yes, this is suited for github

Is your feature request related to a problem? Please describe.

Currently, deleting users doesn't delete organizations created by them.

Describe the solution you'd like

List organizations where the user has an owner role and delete org with a single owner.

Describe alternatives you've considered

Before deleting a user account, ask them to delete or transfer their organizations first.

Additional context

No response

Originally created by @RakeshPotnuru on GitHub (Feb 4, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1348 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently, deleting users doesn't delete organizations created by them. ### Describe the solution you'd like List organizations where the user has an owner role and delete org with a single owner. ### Describe alternatives you've considered Before deleting a user account, ask them to delete or transfer their organizations first. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 03:52:00 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 11, 2025):

Hi, @RakeshPotnuru. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You raised a concern about organizations persisting after the sole owner is deleted.
  • Suggested automatic deletion or prompting users to delete/transfer ownership before account deletion.
  • No further activity or comments have been made on this issue.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If there is no response, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:2963384233 --> @dosubot[bot] commented on GitHub (Jun 11, 2025): Hi, @RakeshPotnuru. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You raised a concern about organizations persisting after the sole owner is deleted. - Suggested automatic deletion or prompting users to delete/transfer ownership before account deletion. - No further activity or comments have been made on this issue. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If there is no response, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@RakeshPotnuru commented on GitHub (Jun 11, 2025):

Yes, this issue is still relevant

<!-- gh-comment-id:2963435547 --> @RakeshPotnuru commented on GitHub (Jun 11, 2025): Yes, this issue is still relevant
Author
Owner

@dosubot[bot] commented on GitHub (Sep 10, 2025):

Hi, @RakeshPotnuru. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested that deleting a user should also delete any organizations they solely own or prompt for deletion/ownership transfer.
  • The issue was marked stale previously due to inactivity.
  • You confirmed the issue is still relevant.
  • No further updates or solutions have been provided yet.
  • The feature or workflow improvement is still under consideration by the maintainers.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of better-auth by commenting here.
  • If I do not hear back within 7 days, the issue will be automatically closed.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3275592714 --> @dosubot[bot] commented on GitHub (Sep 10, 2025): Hi, @RakeshPotnuru. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested that deleting a user should also delete any organizations they solely own or prompt for deletion/ownership transfer. - The issue was marked stale previously due to inactivity. - You confirmed the issue is still relevant. - No further updates or solutions have been provided yet. - The feature or workflow improvement is still under consideration by the maintainers. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of better-auth by commenting here. - If I do not hear back within 7 days, the issue will be automatically closed. Thank you for your understanding and contribution!
Author
Owner

@RakeshPotnuru commented on GitHub (Sep 10, 2025):

yes

<!-- gh-comment-id:3275858636 --> @RakeshPotnuru commented on GitHub (Sep 10, 2025): yes
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2025):

Hi, @RakeshPotnuru. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested that deleting a user should also delete any organizations they solely own, as these organizations currently persist.
  • The issue has been marked as stale twice due to inactivity, but you confirmed it remains relevant each time.
  • No further updates or solutions have been provided yet.
  • The maintainers are still considering this feature or workflow improvement.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3637856400 --> @dosubot[bot] commented on GitHub (Dec 10, 2025): Hi, @RakeshPotnuru. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested that deleting a user should also delete any organizations they solely own, as these organizations currently persist. - The issue has been marked as stale twice due to inactivity, but you confirmed it remains relevant each time. - No further updates or solutions have been provided yet. - The maintainers are still considering this feature or workflow improvement. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open. - Otherwise, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8702