MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / delete

Function delete

source code/utils/secureStorage/plainTextStorage.ts:72–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71 },
72 delete(): boolean {
73 // sync IO: called from sync context (SecureStorage interface)
74 const { storagePath } = getStoragePath()
75 try {
76 getFsImplementation().unlinkSync(storagePath)
77 return true
78 } catch (e: unknown) {
79 const code = getErrnoCode(e)
80 if (code === 'ENOENT') {
81 return true
82 }
83 return false
84 }
85 },
86} satisfies SecureStorage

Callers

nothing calls this directly

Calls 3

getStoragePathFunction · 0.85
getFsImplementationFunction · 0.85
getErrnoCodeFunction · 0.85

Tested by

no test coverage detected