[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

DeleteFileUTF8

Deletes the specified file name

Declaration

Source position: lazfileutils.pas line 116

function DeleteFileUTF8(

  const FileName: string

):Boolean;

Arguments

FileName

  

File name to delete in the function

Function result

True if the specified file name is deleted

Description

DeleteFileUTF8 is a Boolean function used to delete the specified file name.

For the Windows environment, DeleteFileW in Windows is called to remove the specified file name. For UNIX-like enviroments, DeleteFile in SysUtils is called to delete the specified file name. InvalidateFileStateCache is also called.

The return value contaIns True when Filename is successfully deleted from the local file system.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.