MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / clearIndexData

Method clearIndexData

src/services/code-index/manager.ts:351–362  ·  view source on GitHub ↗

* Clears all index data by stopping the watcher, clearing the Qdrant collection, * and deleting the cache file.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

assertInitializedMethod · 0.95
clearCacheFileMethod · 0.80
clearIndexDataMethod · 0.65

Tested by

no test coverage detected