***

title: clear_swaig_query_params
slug: /reference/python/agents/agent-base/clear-swaig-query-params
description: Remove all SWAIG query parameters from the agent.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[add-swaig-query-params]: /docs/server-sdks/reference/python/agents/agent-base/add-swaig-query-params

[ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Clear all query parameters previously added with
[`add_swaig_query_params()`][add-swaig-query-params].
After calling this method, SWAIG webhook URLs will no longer include any extra
query parameters.

## **Parameters**

None.

## **Returns**

[`AgentBase`][ref-agentbase] -- Returns self for method chaining.

## **Examples**

### Reset params in dynamic config

```python {8}
from signalwire import AgentBase

agent = AgentBase(name="assistant", route="/assistant")
agent.set_prompt_text("You are a helpful assistant.")

def dynamic_config(query_params, body_params, headers, agent):
    # Start fresh each request to avoid stale params
    agent.clear_swaig_query_params()
    tier = query_params.get("tier", "free")
    agent.add_swaig_query_params({"tier": tier})

agent.set_dynamic_config_callback(dynamic_config)
agent.serve()
```