DELETEFILE

Top  Previous  Next

Syntax

INT = DELETEFILE(name as STRING)

Description

Deletes the file specified.

Parameters

name - Complete path to the file.

Return value

Returns 0 on failure.

Remarks

DELETEFILE can fail if the file is currently locked by the OS

Example usage

DELETEFILE "c:\\myfiles\\myfile.txt"