* Clears all index data by stopping the watcher, clearing the Qdrant collection, * and deleting the cache file.
()
| 349 | * and deleting the cache file. |
| 350 | */ |
| 351 | public async clearIndexData(): Promise<void> { |
| 352 | if (!this.isFeatureEnabled) { |
| 353 | return |
| 354 | } |
| 355 | if (this._sembleProvider) { |
| 356 | await this._sembleProvider.clearIndexData() |
| 357 | return |
| 358 | } |
| 359 | this.assertInitialized() |
| 360 | await this._orchestrator!.clearIndexData() |
| 361 | await this._cacheManager!.clearCacheFile() |
| 362 | } |
| 363 | |
| 364 | // --- Private Helpers --- |
| 365 |
nothing calls this directly
no test coverage detected