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

Usage in Deno

import { promises } from "node:fs";
rm(
path: PathLike,
options?: RmOptions,
): Promise<void>

Removes files and directories (modeled on the standard POSIX rm utility).

Parameters

path: PathLike
optional
options: RmOptions

Return Type

Promise<void>

Fulfills with undefined upon success.

Back to top