Frank Vèssia Posted March 27, 2011 Posted March 27, 2011 I cannot find in documentation a way to delete a user from code.
apeisa Posted March 27, 2011 Posted March 27, 2011 Have you tried $users->delete($user)? Where $user is actual $user object (not username). So probably something like this: $u = $users->get('username'); $users->delete($u); Documentation for $users is missing and probably will be until Ryan finishes his work building the new user management.
benbyf Posted March 4, 2017 Posted March 4, 2017 how is this done when the user you want to delete is the user logged in? It seems to error and I cann't get my head around how I might change them to guest aftwards etc? Any help would be ace
LostKobrakai Posted March 4, 2017 Posted March 4, 2017 You'd want to do a $session->logout() before deleting the user. 2
benbyf Posted March 4, 2017 Posted March 4, 2017 Thanks @LostKobrakai that was a swift awser and works well. Cheers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now