Syntax

rmdir [/S] [/Q] [<drive>:]<path>

or

rd [/S] [/Q] [<drive>:]<path>

Meaning

Delete a directory from your file system. This function can only be used in ADAPL as the parameter in a SYSTEM command.

/S not only removes all sub directories and files, but also the directory itself.

/Q in combination with /S, removes a directory structure without asking for confirmation.

Parameters between [ and ] are optional, and parameters between < and > must be replaced by an actual value. Do not include any of these brackets in your command.

Example

stat = SYSTEM('rd /S C:\temp\mynewfolder')