deleteFile

Description

Deletes a file. It also returns "true" if the file was deleted successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.

Parameters

Return Type

Boolean (true/false)

Example

deleteFile("C:/fileToDelete.txt");

It is recommended that you use forward slashes ( / ) for file paths.

See also

Peacock