Not tried it, but how about just invoking the systems delete with "/run"?
For example:
//run cmd.exe /c del /S /F /Q $mircdirtest
Just tested, it works great... So great I just accidentally deleted my mIRC directory haha (Oh god. Why wont recuva run.).