I am trying to replace the valve. How do I remove the wiring harness?
Well, if you are talking about the water valve they just unplug.
Here is a service manual in case that is not the valve you are talking about or you have other questions.
http://frigidaireservicetips.com/pdfs/491_AffinityWasherManual.pdf