To delete a directory, use RD. And upgrade to KiXtart 4.52 beta 1 to utilize the RD /S switch.

And read the FAQ Forum with regards to e..g using UDFs.
_________________________
There are two types of vessels, submarines and targets.