Deleting an auth user in Lovable Cloud doesn't cascade
Problem
You delete a user from auth and their rows stay behind. Or worse: after the delete, an old session plus RLS makes the app look like ALL data was wiped.
Fix
- Delete the user's child rows first, table by table (children before parents).
- Then delete the auth user.
- If the app "lost everything" after a delete: it's usually a stale session hitting RLS, not data loss. Sign out and back in.
- Sanity checks: row counts grouped by owner id, and
last_sign_in_atfor the session you think you're using.
Verified
Jul 12, 2026, on a real support case.
Stuck with something like this? I fix it daily → Services