replace dir_delete by io_rmdir

Replace dir_delete by io_rmdir

No idea how to upload with xml. So not tested.