Neos.Neos/Classes/Controller/Module/Administration/UsersController.php
public function deleteAction(User $user)
    {
        if ($user === $this->currentUser) {
            $this->addFlashMessage('You can not delete the currently logged in user', 'Current user can\'t be deleted', Message::SEVERITY_WARNING, [], 1412374546);
            $this->redirect('index');
        }
        $this->userService->deleteUser($user);
        $this->addFlashMessage('The user "%s" has been deleted.', 'User deleted', Message::SEVERITY_NOTICE, [htmlspecialchars($user->getName()->getFullName())], 1412374546);
        $this->redirect('index');
    }
public function deleteAction(User $user)
    {
        if ($user === $this->currentUser) {
            $this->addFlashMessage('You can not delete the currently logged in user', 'Current user can\'t be deleted', Message::SEVERITY_WARNING, [], 1412374546);
            $this->redirect('index');
        }
        $this->userService->deleteUser($user);
        $this->addFlashMessage('The user "%s" has been deleted.', 'User deleted', Message::SEVERITY_NOTICE, [htmlspecialchars($user->getName()->getFullName())], 1412374546);
        $this->redirect('index');
    }
public function deleteAction ( User $ user ) { if ( $ user === $ this -> currentUser ) { $ this -> addFlashMessage ( 'You can not delete the currently logged in user' , 'Current user can\'t be deleted' , Message :: SEVERITY_WARNING , [ ] , 1412374546 ) ; $ this -> redirect ( 'index' ) ; } $ this -> userService -> deleteUser ( $ user ) ; $ this -> addFlashMessage ( 'The user "%s" has been deleted.' , 'User deleted' , Message :: SEVERITY_NOTICE , [ htmlspecialchars ( $ user -> getName ( ) -> getFullName ( ) ) ] , 1412374546 ) ; $ this -> redirect ( 'index' ) ; }
Delete the given user

@param User $user
@return void
Delete the given user