delete user using api

How do I delete a user from the API? Assume I have some "admin" permissions or an api call like delete-user, I check an api token, can I not call a betterauth method for deleting? Admin plugin requires a user to be logged in with admin permissions Default has deleteUser, but its meant for a user deleting their own account. there has to be a proper way to delete a user from just a server side context?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?