• Clear all cached models from IndexedDB.

    Removes cached model files from IndexedDB storage. This forces models to be re-downloaded on next use, which can help with corrupted cache or when you want to ensure you have the latest models.

    Returns Promise<void>

    Example

    // Clear all cached models
    await clearModelCache();

    // Next session creation will re-download models
    const session = await newSession('u2net');