Skip to content

delete the user account #975

Answered by mshannaq
mshannaq asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry I find the solution Shield Docs https://codeigniter4.github.io/shield/user_management/managing_users/

using

// Get the User Provider (UserModel by default)
$users = auth()->getProvider();

$users->delete($user->id, true);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mshannaq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants