DELETEFILE

The DELETEFILE function returns the status of a file deletion command as a single number. DELETEFILE returns 0 for successful file deletion or the appropriate error code if file deletion was not successful.
Syntax:
resourcelib->DELETEFILE (single-text-expression, single-text-expression, single-text-expression)
Meaning:
DELETEFILE (filename, number_of_retries, pause_between_retries)
Returns:
A single number
number_of_retries
The number of times the DELETEFILE function is to check for the deleted file. The maximum is 100 retries.
pause_between_retries
The amount of time, in milliseconds, that the function waits between checking for the deleted file. The maximum is 100,000.

Example

(resourcelib->DELETEFILE(GETDIRECTORY () + "myfile1.txt","10","1000")

Feedback