JavaScript
{dialog.object}phoneGapRemoveDirectory Method
Syntax
{dialog.object}.phoneGapRemoveDirectory(dirName,onSuccess,onError,flagRecursive);
Arguments
- dirName
Name of directory to remove.
- onComplete
A javascript function to call if deleting the directory succeeds.
- onError
A javascript function to call if an error occurs when trying to delete the directory.
- flagRecursive
A true or false value. If true, the files and sub-directories contained in the specified directory are also deleted.
Description
Deletes a directory in the file system of the mobile device.
Discussion
The phoneGapRemoveDirectory method deletes a directory in the file system of the mobile device. The method is asynchronous. Calls the onComplete function if the method succeeded. Calls the onError function is the method failed.
Example
// {dialog.object}.phoneGapRemoveDirectory(dirName,onSuccess,onError,flagRecursive);