Clear old data when changing the working directory.