@DirDelete

Parent Previous Next

@DirDelete.

Deletes the directory. Returns true if the directory existed and was deleted. Otherwise returns false.


Syntax.


 @DirDelete(String path) : Boolean

 


A delete operation makes an implicit recursive deletion of any directories or files within.


WARNING: Please take care not to delete content which is hold up by other applications or is set as the current directory, or else the function may not provide the expected results.


Arguments:


Example:


 //Avoid potential conflict

 @DirSetCurrent("c:\some_other_folder");


 //Make deletion

 String dir := "c:\test1\test2\test3";

 Boolean deleted := @DirDelete(dir);