Skip to main content
rm - fs - Node documentation
function rm

Usage in Deno

import { rm } from "node:fs";
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
Back to top