My intention is to delete file from folder But Here in above script is not working properly can any one please suggest me about this
function deleteFile()
{
var myObject;
myObject = new ActiveXObject("Scripting.FileSystemObject");
myObject.DeleteFile("D:\\WEBSITE_FILES\\docs\\OTR\\"+db_unicid+"\\passportImage.jpg");
return true;
}
<input type='Button' value='Click to Delete File' onClick='return deleteFile()'>