Destroying green energy

If “green” energy is the future why is California removing hydroelectric plants from rivers?