RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.RemoveDir Function

Deletes an existing empty directory.

Pascal
function RemoveDir(const Dir: string): Boolean;
C++
Boolean RemoveDir(const AnsiString Dir);

SysUtils

Call RemoveDir to remove the directory specified by the Dir parameter. The return value is true if a new directory was successfully deleted, false if an error occurred. The directory must be empty before it can be successfully deleted. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!