Pool Pump wiring

I went from a dual speed pump motor to a single speed pump motor. the wiring going to the motor has two red one yellow and a green wire. what do i do with the yellow wire?

It is not needed for a single speed motor, disconnect and remove it.