What I usually do when I'm REALLY in a hurry (e.g. I'm about to trigger domination victory and I want to win by conquest) is starve the city down to 2, then buy a settler. The option comes to "Abandon city", and then you get a settler + no more city. Of course buildling workers and settlers to lower the pop down is probably better in terms of population conservation...