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

Function remove

packages/agent-core/src/utils/per-id-json-store.ts:141–148  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

139 }
140
141 async function remove(id: string): Promise<void> {
142 const path = fileFor(id);
143 try {
144 await unlink(path);
145 } catch (error) {
146 if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error;
147 }
148 }
149
150 return { write, read, list, remove };
151}

Callers

nothing calls this directly

Calls 1

fileForFunction · 0.85

Tested by

no test coverage detected