Skip to main content
Module

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

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

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

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

Parameters

path: string
optional
options: RemoveOption