FDELETE Function: Windows

Deletes an external file or an empty directory.
Category: External Files
Windows specifics: fileref can be assigned by using 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. Under Windows, fileref can be an environment variable. The fileref or the environment variable that you specify must be enclosed in quotation marks.

Details

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