Resolves once the store is empty.
await clearSupplierStats();
export async function clearSupplierStats(): Promise<void> {
try {
const db = await getDB();
await db.clear(IDB_STORE.SUPPLIER_STATS);
} catch (error) {
logger.error(`Failed to clear supplier stats from IndexedDB: ${getErrorMessage(error)}`, {
error,
});
}
}
Removes all recorded supplier stats.