Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.05 KB

DeleteFile.md

File metadata and controls

49 lines (32 loc) · 1.05 KB

Home

Function name : DeleteFile

Group: File Management - Library: kernel32


The DeleteFile function deletes an existing file


Code examples:

Using the DeleteFile
How to access a file using not its name but an alias (hard link)

Declaration:

BOOL DeleteFile(
  LPCTSTR lpFileName   // file name
);  

FoxPro declaration:

DECLARE INTEGER DeleteFile IN kernel32;
	STRING lpFileName
  

Parameters:

lpFileName [in] Pointer to a null-terminated string that specifies the file to be deleted


Return value:

If the function succeeds, the return value is nonzero


Comments:

See also: RemoveDirectory, SHFileOperation, DeleteFileTransacted.