Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
del( url, [body], [params] )
Make a DELETE request.
Returns
Example
import http from 'k6/http';
const url = 'https://httpbin.test.k6.io/delete';
export default function () {
const params = { headers: { 'X-MyHeader': 'k6test' } };
http.del(url, null, params);
}