Home > widget-integration > RecentSearchService > removeRecentSearch
RecentSearchService.removeRecentSearch() method
Remove a specific search from recent searches.
**Legacy**: Not available **New**: Added for better UX
Signature:
removeRecentSearch(query: string, extraParam?: string): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
query |
string |
Search term to remove |
|
extraParam |
string |
(Optional) Optional extra param to match (if not provided, removes all matching titles) |
Returns:
void