CALL "C$DELTREE" USING directoryName                  GIVING returnCode  | 
directoryName  | PIC X(n)  | Specifies the name of the directory to be deleted. Both full and relative paths are allowed.  | 
0  | Operation successful. Directory has been deleted.  | 
1  | Operation failed. Directory has not been fully deleted.  | 
*> define retCode as pic 9(n) call "c$deltree" using "/myapp/logs"                  giving retCode if retCode = 0    display message "Directory fully deleted" else    display message "Directory was not fully deleted" end-if.  |