MCPcopy Create free account
hub / github.com/21st-dev/1code / delete

Method delete

src/main/lib/credential-manager.ts:161–169  ·  view source on GitHub ↗

* Delete credential for a source

(source: LoadedSource)

Source from the content-addressed store, hash-verified

159 * Delete credential for a source
160 */
161 async delete(source: LoadedSource): Promise<boolean> {
162 const credentialId = this.getCredentialId(source);
163 const manager = getCredentialManager();
164 const deleted = await manager.delete(credentialId);
165 if (deleted) {
166 debug(`[SourceCredentialManager] Deleted ${credentialId.type} for ${source.config.slug}`);
167 }
168 return deleted;
169 }
170
171 /**
172 * Get token value for a source (convenience method)

Callers

nothing calls this directly

Calls 1

getCredentialIdMethod · 0.95

Tested by

no test coverage detected