Sign in Join
FPDoc Onlineexperiment

DeleteFileUTF8 function

In unit LazFileUtils

Deletes the specified file name.

Declaration

pascal
function DeleteFileUTF8(const FileName: string): Boolean

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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.