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

CabinetDelete

import { CabinetDelete } from "https://raw.githubusercontent.com/dan-online/cabinet/master/mod.ts";
@example
const { deleter } = new Cabinet("./file.txt");
deleter.sync()
class CabinetDelete {
constructor(fs: Cabinet);
private fs: Cabinet;
filePath: string;
 
callback(cb: (err?: CabinetError) => void);
delete(callback?: cbErrFile);
promise();
sync();
}

§Constructors

§
new CabinetDelete(fs: Cabinet)
[src]

§Properties

§
filePath: string
[src]

Path to the file

§Methods

§
callback(cb: (err?: CabinetError) => void)
[src]

Delete the file and receive a callback

§
delete(callback?: cbErrFile)
[src]

Default delete

§
promise()
[src]

Delete the file and receive a promise

§
sync()
[src]

Synchronously delete the file