Cleared the remaining data at the end of learn().