Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.removeSync

Synchronously removes the named file or directory.

Deno.removeSync("/path/to/empty_dir/or/file");
Deno.removeSync("/path/to/populated_dir/or/file", { recursive: true });

Throws error if permission denied, path not found, or path is a non-empty directory and the recursive option isn't set to true.

Requires allow-write permission.

function removeSync(path: string | URL, options?: RemoveOptions): void;
§
removeSync(path: string | URL, options?: RemoveOptions): void
[src]

§Parameters

§
path: string | URL
[src]
§
options?: RemoveOptions optional
[src]

§Return Type