[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 120

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 environments, DeleteFile in the SysUtils unit 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.


Version 3.2 Generated 2024-02-25 Home