Remove Organizations

Remove multi-tenant team management and RBAC.

Steps

  1. Delete directories and files:

    • app/api/organizations/ (CRUD, members, invitations endpoints)
    • hooks/core/use-organizations.ts (client-side org hooks)
    • components/core/dashboard/organization/ (org UI components)
    • lib/rbac.ts (role-based access control helpers)
  2. Update Prisma schema (prisma/schema.prisma):

    • Remove the OrgRole enum
    • Remove the InviteStatus enum
    • Remove the Organization model
    • Remove the OrganizationMember model
    • Remove the OrgInvitation model
    • Remove activeOrgId from the User model
    • Remove the members relation from the User model
  3. Disable the feature flag: Set NEXT_PUBLIC_ENABLE_ORGANIZATIONS=false in .env, or delete the line from lib/config/features.ts.

  4. Run pnpm db:push to sync the schema.

Demo Mode — Explore freely. Some actions are restricted. demo@launchfst.dev / demo1234

Get LaunchFst →