MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / deleteEntry

Function deleteEntry

src/services/SessionMemory/multiStore.ts:263–270  ·  view source on GitHub ↗
(store: string, key: string)

Source from the content-addressed store, hash-verified

261
262/** Delete an entry from a store. Returns true if it existed. */
263export function deleteEntry(store: string, key: string): boolean {
264 validateStoreName(store)
265 validateKey(key)
266 const entryPath = getEntryPath(store, key)
267 if (!existsSync(entryPath)) return false
268 rmSync(entryPath)
269 return true
270}
271
272/** List all entry keys in a store (without .md extension). */
273export function listEntries(store: string): string[] {

Callers 1

multiStore.test.tsFile · 0.85

Calls 5

validateStoreNameFunction · 0.85
getEntryPathFunction · 0.85
existsSyncFunction · 0.85
rmSyncFunction · 0.85
validateKeyFunction · 0.50

Tested by

no test coverage detected