---
title: "del( url, [body], [params] ) | Grafana k6 documentation"
description: "Issue an HTTP DELETE request."
---

# del( url, \[body], \[params] )

Make a DELETE request.

Expand table

| Parameter                    | Type                                                                     | Description                                                                                                                                                                                                                                     |
|------------------------------|--------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| url                          | string / [HTTP URL](/docs/k6/latest/javascript-api/k6-http/url/#returns) | Request URL (e.g. `http://example.com`).                                                                                                                                                                                                        |
| body (optional, discouraged) | string / object / ArrayBuffer                                            | Request body; objects will be `x-www-form-urlencoded`. This is discouraged, because sending a DELETE request with a body has [no defined semantics](https://tools.ietf.org/html/rfc7231#section-4.3.5) and may cause some servers to reject it. |
| params (optional)            | object                                                                   | [Params](/docs/k6/latest/javascript-api/k6-http/params/) object containing additional request parameters.                                                                                                                                       |

### Returns

Expand table

| Type     | Description                                                               |
|----------|---------------------------------------------------------------------------|
| Response | HTTP [Response](/docs/k6/latest/javascript-api/k6-http/response/) object. |

### Example

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

```javascript
import http from 'k6/http';

const url = 'https://quickpizza.grafana.com/api/delete';

export default function () {
  const params = { headers: { 'X-MyHeader': 'k6test' } };
  http.del(url, null, params);
}
```
