MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / deleteImported

Function deleteImported

apps/vis/server/src/lib/import-store.ts:120–126  ·  view source on GitHub ↗
(home: string, importId: string)

Source from the content-addressed store, hash-verified

118}
119
120export async function deleteImported(home: string, importId: string): Promise<boolean> {
121 if (!isImportId(importId)) return false;
122 const dir = importedDirOf(home, importId);
123 if (!(await pathExists(dir))) return false;
124 await rm(dir, { recursive: true, force: true });
125 return true;
126}
127
128async function readManifest(dir: string): Promise<ImportManifest | null> {
129 try {

Callers 1

Calls 3

isImportIdFunction · 0.85
importedDirOfFunction · 0.85
pathExistsFunction · 0.70

Tested by

no test coverage detected