Skip to main content
Module

x/deno/js/remove.ts>removeSync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function removeSync
import { removeSync } from "https://deno.land/x/deno@v0.17.0/js/remove.ts";

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 = [UNSUPPORTED]