Backend\UserController::destroy PHP Method

destroy() public method

Remove the specified user.
public destroy ( integer $id = null ) : Response
$id integer
return Response
    public function destroy($id = null)
    {
        try {
            $message = $this->user_manager->deleteUser($id);
            return Redirect::to("{$this->link_type}/users")->with('success_message', $message);
        } catch (Exception $e) {
            return Redirect::back()->withInput()->with('error_message', $e->getMessage());
        }
    }