Your code is overly optimistic. You don't check if any fail. You sould always use the /persistent switch on delete and why do you both shell out to NET to delete and also delete with the KiX USE command?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.