Modified the code so that it deletes the destination directory instead of the work directory