> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: remove(toRemove: Array) # Method package: wixLocationFrontend # Method menu location: wixLocationFrontend --> QueryParams --> remove # Method Link: https://dev.wix.com/docs/velo/apis/wix-location-frontend/query-params/remove.md # Method Description: Removes query parameters from the current page's URL. Removes 1 or more query parameters to the current page's URL. The `remove()` method can only be used when browser [rendering](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/frontend-code/page-rendering/about-page-rendering.md) happens, meaning you can only use it in frontend code after the page is ready. If a specified key doesn't exist as a query parameter, it is ignored. Calling the `remove()` method triggers `onChange()` if it has been registered. > **Note:** To retrieve the page's current query parameters, use the `query` method. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Remove query parameters from the URL ```javascript import wixLocationFrontend from 'wix-location-frontend'; // ... wixLocationFrontend.queryParams.remove(["key1"]); // URL before removal: // www.mysite.com/page?key1=value1&key2=value2 // URL after removal: // www.mysite.com/page?key2=value2 ``` ## Add, update, remove, and get URL query parameters ```javascript import wixLocationFrontend from 'wix-location-frontend'; $w.onReady(function () { $w("#addButton").onClick((event) => { const key = $w('#addKey').value; const value = $w('#addValue').value; if (key && value) { const toAdd = { [key]: value }; wixLocationFrontend.queryParams.add(toAdd); $w('#addKey').value = undefined; $w('#addValue').value = undefined; } }); $w("#removeButton").onClick((event) => { const paramToRemove = [$w('#removeKey').value]; wixLocationFrontend.queryParams.remove(paramToRemove); $w('#removeKey').value = undefined; }); $w("#getButton").onClick((event) => { const query = wixLocationFrontend.query; if (query) { $w('#getText').value = JSON.stringify(query, null, 2); } }); }); ``` ---