method URLSearchParams.deleteURLSearchParams.delete(name: string,value?: string,): voidDeprecatedDeletes 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'); Parametersname: stringoptionalvalue: stringReturn Typevoid