MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / rm

Method rm

packages/nodebox/src/modules/fs.ts:164–169  ·  view source on GitHub ↗
(path: string, options?: { force?: boolean; recursive?: boolean })

Source from the content-addressed store, hash-verified

162 }
163
164 public async rm(path: string, options?: { force?: boolean; recursive?: boolean }): Promise<void> {
165 const { force, recursive } = options || {};
166 await this.channel.send('fs/rm', { path, force, recursive }).catch((error) => {
167 throw new Error(format('Failed to remove file at path "%s"', path), { cause: error });
168 });
169 }
170
171 /**
172 * Subscribe to changes at the given file or directory.

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected