Wash and dry your hands, then put on a properly grounded anti-static wrist strap, before handling internal electronic components. To ground the wrist strap, attach it to the metal chassis of a plugged-in three prong power supply, of a computer for example.
While securely holding the HDD in your left hand, use the soft pad of your right hand fingers to gently pull the ribbon wire out of its socket, toward your right.