Function Reference

DirRemove

Deletes a directory/folder.

DirRemove ( "path" [, recurse] )

 

Parameters

path Path of the directory to remove.
recurse [optional] Use this flag to specify if you want to delete sub-directories too.
  0 = (default) do not remove files and sub-directories
  1 = remove files and subdirectories (like the DOS DelTree command)

 

Return Value

Success: Returns 1.
Failure: Returns 0 if there is an error removing the directory (or if directory does not exist).

 

Remarks

None.

 

Related

DirCreate, FileRecycle

 

Example


; Delete C:\Test1 and all subdirs and files
DirRemove("C:\Test1", 1)