To ~ something from a substance or from light means to remove it by passing the substance or light through something acting as a filter.
Children should have glasses which ~ UV rays...
Plants and trees filter carbon dioxide out of the air and produce oxygen.
PHRASAL VERB: V P n (not pron), V n P of/from n, also V n P