Function FileDelete() Foundation

Deletes one or more files specified by a file mask and file attributes.

Syntax
FileDelete( <cFileMask>        , ;
            [<nFileAttributes>]  ;  // Default: 32
          ) --> lDeleted
Return

Returns .T. if at least one file was deleted.

Description

<cFileMask>

This is a string specifying the file(s) to delete. It may contain "wild cards" (eg: "C:\DATA\*.NTX" )

<nFileAttributes>

File attributes are numeric values corresponding to #define constants found in XBTDISK.CH

FA_NORMAL

FA_READONLY

FA_HIDDEN

FA_SYSTEM

FA_ARCHIVE

Multiple attributes are specified by adding the corresponding constants.

NOTE

To delete a directory the funtion DirRemove() must be used.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.