JavaScript

{dialog.object}phoneGapRemoveDirectoryRecurse Method

Syntax

{dialog.object}.phoneGapRemoveDirectoryRecurse(dirName,onSuccess,onError);

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.

Description

Removes directories recursively in the file system of the mobile device.

Discussion

The phoneGapRemoveDirectoryRecurse method removes directories recursively 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}.phoneGapRemoveDirectoryRecurse(dirName,onSuccess,onError);