Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.remove

Deprecated! UUID is part of the deno standard library
Latest
function Deno.remove
import { Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { remove } = Deno;

Removes the named file or directory. Would throw error if permission denied, not found, or directory not empty if recursive set to false. recursive is set to false by default.

  await Deno.remove("/path/to/dir/or/file", {recursive: false});

Parameters

path: string
optional
options: RemoveOption

Returns

Promise<void>