sas fdelete function
Deletes an external file or an empty directory. The FDELETE function allows you to delete an external file or an empty directory. Under OpenVMS, filerefs can be assigned by environment variables and by system commands. Note: The fileref used with the FDELETE function must be associated with an empty directory. FDELETE function in SAS Language Reference: Dictionary.