MCPcopy Index your code
hub / github.com/codeaashu/claude-code / delete

Function delete

src/utils/secureStorage/plainTextStorage.ts:70–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getStoragePathFunction · 0.85
getFsImplementationFunction · 0.85
getErrnoCodeFunction · 0.85

Tested by

no test coverage detected