JavaScript

{dialog.object}phoneGapDeleteFile Method

Syntax

{dialog.object}.phoneGapDeleteFile(fileName,onSuccess,onError);

Arguments

fileName

The file to delete.

onComplete

A javascript function to call if deleting the file succeeds.

onError

A javascript function to call if an error occurs when trying to delete the file.

Description

Deletes a file in the file system of the mobile device.

Discussion

The phoneGapDeleteFile method deletes a file 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}.phoneGapDeleteFile(fileName,onSuccess,onError);