Just dont delete the logdir, what bussiness is it of your script as to the other settings of SOMEONE ELSES mirc, maybe the person wants to run using both your logging and mircs, not to mention that other scripts also use $logdir, so there all gonna go crap faced as well if u delete the folder.