Jump to content

Recommended Posts

Posted

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.

  • 5 years later...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...