What does "except" mean in these verses?

1. The above text reads: Nai Xian Gonghou and his ministers came to the east to eliminate him.

The whole sentence means: So he invited the Gonghou and ministers and ordered them to go to the palace. (The emperor went up to the palace from the middle steps, and the ministers went to the palace from the east steps. Dongchu: that is, the east steps. To ascend from Dongchu, is to go up to the palace from the east steps. This is a characteristic of Fu. It is not explained clearly, and it is often used obscurely. The noun refers to)

2. Get rid of; clear out; exclude

To get rid of the treacherous people.

——Zhuge Liang's "The Master's Guide"