Clear All Auth Data
⚠️ WARNING ⚠️
This will permanently delete ALL authentication data including:
- All users
- All user profiles
- All organizations
- All prompts
- All sessions
- All auth accounts (GitHub, Google connections)
How to Clear All Auth Data
- Go to the Convex Dashboard
- Navigate to your project (standing-bird-371)
- Go to the "Functions" tab
- Find
clearAuthData:clearAllAuthData - Click "Run Function"
- Click "Run" to execute (no arguments needed)
Alternative: Using the Convex CLI
cd tools/convex
npx convex run clearAuthData:clearAllAuthDataWhat Gets Deleted
- users - All user accounts
- userProfiles - All app-specific user profiles
- organizations - All organizations
- organizationMembers - All organization memberships
- prompts - All saved prompts
- promptVersions - All prompt version history
- promptUsage - All prompt usage statistics
- authSessions - All active sessions
- authAccounts - All OAuth connections
- authVerificationCodes - All verification codes
- authRefreshTokens - All refresh tokens
After Clearing
You'll need to:
- Sign up again with new accounts
- Recreate any test data you need
- Re-establish OAuth connections if needed
Safety
This mutation only works in development mode. It will throw an error if you try to run it in production.