How are carbon dioxide and oxygen removed from plants?

Carbon dioxide is removed through stomata during respiration.

Oxygen is released through stomata during photosynthesis.

Some gases also diffuse through the surface of leaves, stems, and roots.