To remove the alternator harness, you will have to push the plastic tab on the connector and pull outwards. Keep in mind it could be little tight due to having a water-resistant seal around the connector.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.