DeleteFile
This command will delete a specified file on the mobile device. String data or binary data can be read.
Group: Device Extensions
Syntax: [bOK =] Device.DeleteFile(sPath)
bOK (Boolean) Optional – the success or failure of the command.
sPath (String) the path of the file to be deleted.
Example:
Private Sub ButtonDelete_Click()
On Error Resume Next
Dim bOk As Boolean
bOk = Device.DeleteFile("C:\temp\test.txt")
If bOk Then
App.MsgBox("Success")
Else
App.MsgBox("Failure")
End If
End Sub
Versions Supported: RFgen 5.2.3.0 and newer.