FDELETE Function: UNIX

Deletes an external file or an empty directory.
Category: External Files
UNIX specifics: fileref can be assigned with an environment variable
See: FDELETE Function in SAS Functions and CALL Routines: Reference

Syntax

FDELETE(“fileref”)

Required Argument

fileref
specifies the fileref that is assigned to the external file or directory. The fileref cannot be associated with a list of concatenated filenames or directories. If the fileref is associated with a directory, the directory must be empty. You must have permission to delete the file. See the UNIX man page for chmod for more information about permissions.
Under UNIX, fileref can also be an environment variable. The fileref must be enclosed in double quotation marks.

Details

FDELETE returns 0 if the operation was successful, or a nonzero number if it was not successful.