MCPcopy Index your code
hub / github.com/Stevenic/codepilot / delete

Method delete

lib/CodeIndex.js:155–162  ·  view source on GitHub ↗

* Deletes the current code index.

()

Source from the content-addressed store, hash-verified

153 * Deletes the current code index.
154 */
155 delete() {
156 return __awaiter(this, void 0, void 0, function* () {
157 yield fs.rm(this.folderPath, { recursive: true });
158 this._config = undefined;
159 this._keys = undefined;
160 this._index = undefined;
161 });
162 }
163 // LLM-REGION
164 /**
165 * Returns whether a `vectra.keys` file exists for the index.

Callers 1

runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected