Small change to purge files when navigating away from the metadata step.