new methods to clear the workdir on the remote machines