---
title: querystring.remove
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/query-string/querystring-remove
---

```
STRING querystring.remove(STRING url)
```

**Available in:** all subroutines

Returns the given URL with its query string removed.

## Example

```vcl
set req.url = querystring.remove(req.url);
```
