Silent Running

(1972)

In a future where all flora is extinct on Earth, an astronaut is given orders to destroy the last of Earth's plant life being kept in a greenhouse on board a spacecraft.