$user->delete()

Deletes the user account. This cannot be undone

  • return (boolean)

Example

try {

  $site->user('bastian')->delete();
  echo 'The user has been deleted';

} catch(Exception $e) {

  echo 'The user could not be deleted';
  // optional reason: echo $e->getMessage();

}

Is something missing or incorrect? Edit this page on Github…