Folder.Delete() - JavaScript
by Subramanian[ Edit ] 2012-09-14 19:14:55
<font color=#0033B3>Syntax
folder.Delete(boolean)
folder.Delete()
The Delete() method deletes a specified folder.
The optional boolean parameter cause the method to delete all read-only files and folders in the folder if set to true.
<html>
<body>
<script language="JScript">
<!--
var myObject = new ActiveXObject("Scripting.FileSystemObject");
var myFolder = myObject.GetFolder("c:\Test");
myFolder.Delete();
// End hide-->
</script>
</html>
</font>