I am trying to install a new version of software by just copying that software directory from the server to the desktop. That works.

But I would like to avoid a possible mess by first deleting the existing directory and after that copying the fres version of the software. But that doesn't work.

What I have tried is to choose for 'Delete Directory' in 'Application Files' of the ZDM app and then copy the fresh version tot that same directory. But then is says that it already is a target.
But even when I only use the delete option (hoping to make the copy action into another app), it only deletes the directory when it's empty. And unfortunately, the current directory is full of files en directories.

So how do I solve this?
How can I replace an directory with another one?

Thanks in advance for any help.