RmDir – System Function





RmDir Function


Usage

The RmDir function deletes a directory.

Syntax

RmDir(<directory_name>)

or

ret = RmDir(<directory_name>)

Parameters

  • <directory_name>, string, name of the directory to delete.

Return Value

ret, numeric return code. When the deletion is successful, the function returns 0; otherwise, use this return code for Error Handling.

Remarks

The function works like the DOS statement RMDIR.

See Also

MkDir

Examples

RmDir("c:\\text")
RmDir(direct$)