Resolves once the store is empty.
await clearSearchHistory();
export async function clearSearchHistory(): Promise<void> {
try {
const db = await getDB();
await db.clear(IDB_STORE.SEARCH_HISTORY);
} catch (error) {
logger.error('Failed to clear search history from IndexedDB', { error });
}
}
Removes every search-history entry.