remove
Summary
Deletes a file or directory.
Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.
Method of apis/filesystem/Entryapis/filesystem/Entry
Syntax
Entry.remove(successCallback, errorCallback);
Parameters
successCallback
- Data-type
- String
A callback that is called on success.
errorCallback
- Data-type
- String
(Optional)
A callback that is called when errors happen.
Return Value
No return value
Notes
It is an error to attempt to delete a directory that is not empty.
It is an error to attempt to delete the root directory of a filesystem.
Related specifications
- W3C File API: Directories and System Specification
- W3C Working Draft