forecast-web
    Preparing search index...

    Function clearCache

    • Deletes model files forecast-web stored with the Cache API. With a model id, deletes that model's published weights (every format) and anything cached from its Hugging Face repo; without one, deletes everything, including self-hosted weights. Resolves true if anything was deleted, false when nothing was stored or the Cache API is unavailable.

      Parameters

      Returns Promise<boolean>

      await clearCache("timesfm-2.5"); // one model
      await clearCache(); // everything