CBL_DELETE_FILE deletes the indicated file.
CALL "CBL_DELETE_FILE" USING FILE-NAME, GIVING STATUS
FILE-NAME PIC X(n) | Contains the name of the file to be deleted. This should either be a full path name or a name relative to the current directory.
The "@[DISPLAY]:" annonation for Thin Client is allowed. For example: CBL_DELETE_FILE "@[DISPLAY]:C:\path\filename" See CBL_COPY_FILE for more information. |
STATUS Any numeric data type | Returns 0 if successful, or 1 if not. |
The behavior of this routine is affected by the FILENAME_SPACES configuration variable. The value of FILENAME_SPACES determines whether spaces are allowed in a file name. See the entry for FILENAME_SPACES in Appendix H for more information.