Extirpate means to remove or destroy completely, to pull up by the roots - literally or figuratively. It's synonymous with eradicate or eliminate. The other options are unrelated: seasonings are condiments or spices, a written court command is a writ, and swinging from side to side is oscillating or swaying.