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

Function delete

src/utils/secureStorage/macOsKeychainStorage.ts:159–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 }
158 },
159 delete(): boolean {
160 // Invalidate cache before delete
161 clearKeychainCache()
162
163 try {
164 const storageServiceName = getMacOsKeychainStorageServiceName(
165 CREDENTIALS_SERVICE_SUFFIX,
166 )
167 const username = getUsername()
168 execSyncWithDefaults_DEPRECATED(
169 `security delete-generic-password -a "${username}" -s "${storageServiceName}"`,
170 )
171 return true
172 } catch (_e) {
173 return false
174 }
175 },
176} satisfies SecureStorage
177
178async function doReadAsync(): Promise<SecureStorageData | null> {

Callers

nothing calls this directly

Calls 4

clearKeychainCacheFunction · 0.85
getUsernameFunction · 0.70

Tested by

no test coverage detected