Home > Language Reference > System Functions > RmDir

RmDir

The RmDir function deletes the specified folder.

Usage

Used to delete a folder and its contents.

Syntax

ret = RmDir(<folder_name>)

Parameters

<folder_name>. string, name of the folder to delete.

Return value

ret, optional numeric return value. If the folder is successfully deleted, the return value is 0. If the function fails, the return value is a nonzero value (see System Functions Error Codes ).

See also

MkDir

Examples

RmDir("c:\test")

RmDir(direct$)