Delete the specified shared directory and its content before copying the artifacts.