You could delete the script directory using FSO ActiveX object
code:
var fso = new ActiveXObject ("Scripting.FileSystemObject");
I belive that is how to do the activex thinger.
This would not be a proper way to do it though, as it may result in data loss/corruption.