Skip to main content
Module

x/cabinet/mod.ts>CabinetDelete

Cabinet, the easier way to manage files in Deno
Go to Latest
class CabinetDelete
Re-export
import { CabinetDelete } from "https://deno.land/x/cabinet@v1.1.0/mod.ts";

Examples

Example 1

const { deleter } = new Cabinet("./file.txt");
deleter.sync()

Constructors

new
CabinetDelete(fs: Cabinet)

Properties

private
fs: Cabinet
filePath: string

Path to the file

Methods

callback(cb: (err?: CabinetError) => void)

Delete the file and receive a callback

delete(callback?: cbErrFile)

Default delete

Delete the file and receive a promise

Synchronously delete the file