MCPcopy Create free account
hub / github.com/arctic-cli/interface / remove

Function remove

packages/arctic/src/auth/index.ts:170–176  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

168 }
169
170 export async function remove(key: string) {
171 const file = Bun.file(filepath)
172 const data = await readLocalAuth()
173 delete data[key]
174 await Bun.write(file, JSON.stringify(data, null, 2))
175 await fs.chmod(file.name!, 0o600)
176 }
177
178 export async function external(): Promise<Record<string, Info>> {
179 return loadExternalAuth()

Callers

nothing calls this directly

Calls 1

readLocalAuthFunction · 0.85

Tested by

no test coverage detected