Better Auth delete user in Next.js, with a Delete account button

Better Auth deletes users itself, for free: set user.deleteUser.enabled to true in auth.ts and call authClient.deleteUser(). If your server log says "Delete user is disabled. Enable it in the options", that switch is what's missing. Better Auth UI's free delete-user plugin gives you a ready shadcn card for it. Hold to Delete is for when the button itself should be hard to hit by accident: a 1.2 second hold, then five seconds to undo before Better Auth is called.

Hold to Delete, preview
One payment$3

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript