A method to deplete carbon and oxygen vertically