Files.Delete

Top  Previous  Next

 

Syntax

function Files.Delete(FileName: string): boolean

 

Alternative Names

ibec_DeleteFile

 

Description

Deletes the file identified by FileName and returns TRUE if successful, FALSE otherwise. In case of failure, you can use Shell.GetLastError to see why it failed.

 

See also

Files.FileExists

 

Example

execute udsblock 

as

begin

  Files.Delete('c:\temp\testfile.txt');

end