Skip to main content
rm - node__fs.d.ts - Node documentation
function rm

Usage in Deno

```typescript import { rm } from "node:node__fs.d.ts"; ```
rm(
path: PathLike,
callback: NoParamCallback,
): void
Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the completion callback.

Parameters

path: PathLike
callback: NoParamCallback

Return Type

void
rm(
path: PathLike,
options: RmOptions,
callback: NoParamCallback,
): void

Parameters

path: PathLike
options: RmOptions
callback: NoParamCallback

Return Type

void