Save latest state to remove local files