MCPcopy Index your code
hub / github.com/anomalyco/opencode / remove

Function remove

packages/enterprise/src/core/storage.ts:33–38  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

31 },
32
33 async remove(path: string): Promise<void> {
34 const response = await client.fetch(`${base}/${path}`, {
35 method: "DELETE",
36 })
37 if (!response.ok) throw new Error(`Failed to remove ${path}: ${response.status}`)
38 },
39
40 async list(options?: { prefix?: string; limit?: number; after?: string; before?: string }): Promise<string[]> {
41 const prefix = options?.prefix || ""

Callers 1

share.tsFile · 0.70

Calls 4

adapterFunction · 0.85
fetchMethod · 0.80
resolveFunction · 0.70
removeMethod · 0.65

Tested by

no test coverage detected