I want to remove one folder in my script, first i tested myfolder is presents, i am correct i am getting alert myfolder is exists then i want to delete the folder, i used remove() funtion, but i am failed to remove the folder.
myFolder = Folder("D:\\package\\ch1\\Fonts");
alert("Your folder exists") // i am getting alert tat my folder exists
myFolder.remove(); // not working
Folder(myFolder).remove(); // not working
is what i done is corret method, or any other commets for deleting the folder.
thanks in advance
a r u l
If the folder exists but can't be removed, then there are probably some files in it: you can delete only empty folders in JS.