Unwanted gas is generally removed by flushing with an inert gas.
It is important to use a Weld Purge Monitor oxygen measuring instrument as a means to inspect the purge gas before purging is actually started.