Remove search history in reverse order