◄Summary► ◄Details► ◄Example► ◄Back► Argument path String expression representing the directory to be deleted Description The RmDir procedure removes a specified directory from a disk. RmDir works the same as the DOS command RMDIR or RD. The directory must be empty. The path argument may be any legal DOS path and include the shorthand directory notation '.' and '..'. An I/O error occurs if the directory is not empty, does not exist, or is the current directory. To prevent a program from halting with a run-time error when an I/O error occurs, turn off I/O checking with {$I-} and check the return value of the IOResult function.