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

Usage in Deno

import { rm } from "node:fs/promises";
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.