To help someone struggling with this I created a small showcase Next.js example to delete a user from supabase.
- Clone repo
- Rename
.example.env
to.env.local
and fill in your env variables npm run dev
- Open api route http://localhost:3000/api/delete-user?user=someuserid