See Also: File_Exist, Get_Directory, Make_Directory, Make_Temp_File, Valid_Drive
To delete a disk folder.
Remove_Directory {folder}
The Remove_Directory command deletes the folder specified in the {folder} argument.
Remove_Directory "k:\accounting\data"
In this example, the data subfolder will be removed from the k:\accounting folder.
If the folder cannot be removed for any reason, e.g., there are files in the folder, or the folder attributes are set to read-only, error 4358 DFERR_RAWFILE_ERROR is triggered.
Remove_Directory will fail if the current folder is the same as the folder you want to remove.
Remove_Directory may fail when the folder is in use by another application.