DELETE FROM public.user_memberships
WHERE user_id IN (
    SELECT id FROM public.users WHERE username = 'admin'
)
  AND tenant_id IN (
    SELECT tenant_id FROM public.tenants WHERE slug = 'admin'
);
