---
title: "clearTag( name ) | Grafana k6 documentation"
description: "removes tag from the session"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# clearTag( name )

Expand table

| Parameter | Type   | Description            |
|-----------|--------|------------------------|
| name      | string | Tag name to be removed |

### Example

JavaScript ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```javascript
import { Httpx } from 'https://jslib.k6.io/httpx/0.1.0/index.js';

const session = new Httpx({ tags: { tagName: 'tagValue' } });

session.clearTag('tagName'); // removes tag set in the constructor

export default function () {
  session.get('https://quickpizza.grafana.com');
}
```
