Skip to main content

delete

method URLSearchParams.delete
Jump to headingURLSearchParams.delete(
name: string,
value?: string,
): void

Deletes search parameters that match a name, and optional value, from the list of all search parameters.

let searchParams = new URLSearchParams([['name', 'value']]);
searchParams.delete('name');
searchParams.delete('name', 'value');

Parameters Jump to heading

Jump to headingname: string
optional
Jump to headingvalue: string

Return Type Jump to heading

void
Back to top