Skip to main content
URLSearchParams.prototype.delete - node__url.d.ts - Node documentation
method URLSearchParams.prototype.delete

Usage in Deno

```typescript import { URLSearchParams } from "node:node__url.d.ts"; ```
URLSearchParams.prototype.delete(
name: string,
value?: string,
): void
If `value` is provided, removes all name-value pairs where name is `name` and value is `value`. If `value` is not provided, removes all name-value pairs whose name is `name`.

Parameters

name: string
optional
value: string

Return Type

void