'Removes the parameter with the given name and value -- if it exists.'

def pop_query_param(self, name, value):

    params = {}
    for (param, defaults) in self.query.multi_dict.items():
        if (param == name):
            for default in defaults:
                if (default != value):
                    params.setdefault(param, []).append(default)
        else:
            params[param] = defaults
    return self.del_query_param(name).set_query_params(self.clean_params(params))
