Removes duplicate files and submitted tar file.