CBL_DELETE_DIR

CBL_DELETE_DIR deletes the indicated directory. The directory is deleted only if it is empty. You may use remote name syntax in combination with AcuServer to delete a directory on a remote machine.

Usage

CALL "CBL_DELETE_DIR" 
    USING PATH-NAME,
    GIVING STATUS

Parameters

PATH-NAME PIC X(n)
Contains the relative or absolute path name, terminated by space or NULL.

The @[DISPLAY]: for Thin Client support is allowed. For example:

CBL_DELETE_DIR "@[DISPLAY]:C:\path" 
Note: For Thin Client, when deleting a directory relative to the current directory on the display host, the path name must begin with @[DISPLAY}:.\. Omitting .\ deletes the directory relative to the path name identified in the TEMP user environment variable.

See CBL_COPY_FILE for more information.

STATUS Any numeric 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.