Fetching details from the dictionary...

to remove; to get rid of; to take away; to eliminate
to exclude; to except; to leave out; to omit
to kill (a traitor, opponent, etc.)
ごみを除いて部屋をきれいにする。
Clean the room by removing trash.
例外を除いて全員が賛成した。
Everyone agreed except for the exception.
不要な部分を除いて考えます。
I think after removing unnecessary parts.