Using the flat end of a spudger, pry the subwoofer connector straight up off the logic board.
On some models, the subwoofer connector is soldered to the logic board and will break if you pry it off. If you need to replace the speaker/subwoofer, you can pull back the foam padding on the connector and remove the red and black wires to disconnect. You will need to reinsert the wires from the new speaker to reconnect.
If you are only removing the optical drive and not replacing the speaker/subwoofer, you do not need to disconnect this connector.
Remove the two black Phillips #0 screws securing the small metal mounting bracket. Transfer this bracket to your new optical drive or hard drive enclosure.
Great guide, thank you! Took me 40 minutes to complete. I also cleaned my cooler fan though as i regularly do. I have moderate experience, Took apart my macbook (and other stuff too) several times. Not doing this daily though. Everyone can do this when keeping the basic rules in mind: Take your time and space and use quality tools.