RMDIR Function

Deletes a directory if it is empty.

Category: String
Returned data type: Boolean

Syntax

rmdir(directory)

Required Argument

directory

specifies the directory to remove if it is empty

Example

// Declare a string variable to contain the path to the directory to be created

string dir

dir="C:\DataQuality\my_data"

 

// Declare a Boolean variable for the MKDIR function call

boolean d

 

// Use the MKDIR function to create the C:\DataQuality\my_data directory

d rmdir(dir)