public function deleteUser($username)
    {
        try {
            $this->_toolbox->getUserHandler()->removeUser($username);

            return true;
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function deleteUser($username)
    {
        try {
            $this->_toolbox->getUserHandler()->removeUser($username);

            return true;
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function deleteUser ( $ username ) { try { $ this -> _toolbox -> getUserHandler ( ) -> removeUser ( $ username ) ; return true ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new ServerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Delete a user from the server.
@param  string          $username The user we want to delete.
@throws ServerException
@return boolean
Delete a user from the server .