FileDelete - method of the Pm object
Description:
Deletes the file.
Syntax:
Boolean FileDelete(String sFile)
Parameters:
sFile | (String) The file name with the path to delete.
If a full path is not entered, then it is completed relative to the application folder.
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders. |
---|
Return value:
true - on success
false - on error
Note:
The method can be used for multiple deleting (e.g.
*.*).
This method
is not functional in
Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard
Pm.FileDelete("#temp:*.dat");
Pm.FileDelete "#temp:*.dat"
Example2:
JavaScriptVBScriptSelect and copy to clipboard
var bFileDelete = Pm.FileDelete("#temp:*.dat");
Dim bFileDelete
bFileDelete = Pm.FileDelete("#temp:*.dat")