System.SysUtils.DeleteFile

From RAD Studio API Documentation
Revision as of 19:54, 11 November 2011 by L10nBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
Translations