Remove a workspace member
/api/members/user%40company.com or /api/members/[email protected]true when the deletion succeeds. The operation is idempotent - returns success even if the member didn’t exist.ADMIN_EMAILS) cannot be deletedsrc/app/api/members/[email]/route.ts:43ADMIN_EMAILS environment variable cannot be deleted. These are configured through environment variables and represent permanent workspace administrators.
If you attempt to delete a protected member, you’ll receive:
workspace_members tableusers table if they’ve logged inADMIN_EMAILS environment variableisAdminByEnv is true