As for your requirement to recursively copy folders from multiple source folders to a single destination folder, I think you're going about that wrong. You're trying to put the burden on KM to copy files individually and you are trying to implement recursion yourself. None of that is necessary. Instead, there are built in shell commands to do that.
To be honest, I am scared to write the macro to help you with this because you are asking for an entire folder structure to be deleted, and I don't want to write a macro for you that includes a recursive delete, because I don't want to be responsible for deleting more files that you intended. However I will show you the following simple macro which does the recursive copy, but omits the delete. This is good enough for testing purposes.
Notice that I placed "xxx" in part of my path. You must specify your own full path to the files here. No doubt your path will be different. Also notice that I didn't include a recursive delete command. If you can get this to work, we can talk about adding a recursive delete command later. I'm just too scared to give you a recursive delete command now until I'm sure everything else is working.