Carbon dioxide scrubbers are use to remove the gas.
Apollo for example used lithium hydroxide (LiOH) canister and a pump to blow the air trough it and it will react with the carbon dioxide.
ISS have more complex system that can operate continuously and extract carbon diode as a gas that is dumped overboard. It is uses electricity and reversible chemical processes to extract the carbon dioxide heating up the filter in low pressure to extract the gas without need to continuously replace the filters.
Latest Answers