> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # clearSwaigQueryParams > Remove all SWAIG query parameters from the agent. [add-swaig-query-params]: /docs/server-sdks/reference/typescript/agents/agent-base/add-swaig-query-params [ref-agentbase]: /docs/server-sdks/reference/typescript/agents/agent-base Clear all query parameters previously added with [`addSwaigQueryParams()`][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 `this` for method chaining. ## **Examples** ### Reset params in dynamic config ```typescript {9} import { AgentBase } from '@signalwire/sdk'; const agent = new AgentBase({ name: 'assistant', route: '/assistant' }); agent.setPromptText('You are a helpful assistant.'); agent.setDynamicConfigCallback((queryParams, bodyParams, headers, agentCopy) => { // Start fresh each request to avoid stale params agentCopy.clearSwaigQueryParams(); const tier = queryParams.tier ?? 'free'; agentCopy.addSwaigQueryParams({ tier }); }); await agent.serve(); ``` > Remove all SWAIG query parameters from the agent.