Skip to content

feat: add cascade company deletion for platform admins#330

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/company-delete-cascade
Open

feat: add cascade company deletion for platform admins#330
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/company-delete-cascade

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • DELETE /tenants/{id} endpoint for platform_admin
  • Cascade deletes all related data (agents, users, sessions, tools, etc.) in FK-safe order
  • Refuses to delete the default tenant
  • Single transaction, all-or-nothing

Test plan

  • Create company → DELETE → 204 → GET → 404

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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