Show: Delphi C++
Display Preferences

System.SysUtils.DeleteFile

From XE2 API Documentation
Jump to: navigation, search

Delphi

function DeleteFile(const FileName: string): Boolean;

Contents

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils System.SysUtils

Description

Deletes a file from disk.

DeleteFile deletes the file named by FileName from the disk. If the file cannot be deleted or does not exist, the function returns False.

Note: DeleteFile can delete a symbolic link from a file or a directory and is the preferred method for deleting symlinks.

See Also


Code Examples

Personal tools
Previous Versions
Translations