MCPcopy Create free account
hub / github.com/cloudflare/agents / rm

Function rm

packages/shell/src/tests/workspace.test.ts:236–241  ·  view source on GitHub ↗
(
      path: string,
      _options?: { recursive?: boolean; force?: boolean }
    )

Source from the content-addressed store, hash-verified

234 return files.delete(path);
235 },
236 async rm(
237 path: string,
238 _options?: { recursive?: boolean; force?: boolean }
239 ) {
240 files.delete(path);
241 },
242 async cp(src: string, dest: string, _options?: { recursive?: boolean }) {
243 const content = files.get(src);
244 if (content !== undefined) files.set(dest, content);

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected