public function removeUser($username)
    {
        // This preserves compatibility for the old policy parameter.
        $params = [];

        $url = UrlHelper::buildUrl(Urls::URL_USER, [$username]);
        $url = UrlHelper::appendParamsUrl($url, $params);
        $this->getConnection()->delete($url);

        return true;
    }
public function removeUser($username)
    {
        // This preserves compatibility for the old policy parameter.
        $params = [];

        $url = UrlHelper::buildUrl(Urls::URL_USER, [$username]);
        $url = UrlHelper::appendParamsUrl($url, $params);
        $this->getConnection()->delete($url);

        return true;
    }
public function removeUser ( $ username ) { // This preserves compatibility for the old policy parameter. $ params = [ ] ; $ url = UrlHelper :: buildUrl ( Urls :: URL_USER , [ $ username ] ) ; $ url = UrlHelper :: appendParamsUrl ( $ url , $ params ) ; $ this -> getConnection ( ) -> delete ( $ url ) ; return true ; }
Remove a user, identified by the username

@throws Exception

@param string $username - username as a string, of the user that is to be deleted

@return bool - always true, will throw if there is an error
Remove a user identified by the username