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

Function remove

packages/arctic/src/storage/storage.ts:160–166  ·  view source on GitHub ↗
(key: string[])

Source from the content-addressed store, hash-verified

158 })
159
160 export async function remove(key: string[]) {
161 const dir = await state().then((x) => x.dir)
162 const target = path.join(dir, ...key) + ".json"
163 return withErrorHandling(async () => {
164 await fs.unlink(target).catch(() => {})
165 })
166 }
167
168 export async function read<T>(key: string[]) {
169 const dir = await state().then((x) => x.dir)

Callers 1

index.tsFile · 0.50

Calls 2

stateFunction · 0.85
withErrorHandlingFunction · 0.85

Tested by

no test coverage detected