Skip to content

FileManager.deleteFile

Kerri Shotts edited this page Oct 26, 2013 · 1 revision

(part of FileManager)

Parameters:

  • filename - an absolute or relative path to the file (including filename)

Returns: Promise, resolving to the new directory

ASYNCHRONOUS

Deletes the specified file.

Usage

aFileManager.deleteFile ( "/path/to/file.txt" )
            .then ( ... )
            .catch ( function ( e ) { console.log ( e ); }
            .done ();
Clone this wiki locally