I, like an idiot, was using a socket wrench to remove the bolt from my idler pulley. I unscrewed the bolt too far, wedging the wrench between wheel well and the bolt. I could not even flip the switch to reverse the socket wrench. How can I remove the socket wrench?
For completeness, if you haven't tried it yet, see if you can rotate the socket/bolt at all by hand to tighten it back in some. Now that you've broken the bolt open it may move by hand.
If not, the socket wall should be able to hold up to some moderate clamping force so I would try a set of vice grips or other locking pliers if you have those available.
If not, then a regular set of pliers.
Depending on the length of the socket (if a deep socket was used), possibly a strap wrench (like an oil filter wrench) could fit onto it.
Once you have a good grip on the socket, you should be able to rotate the bolt back in some to free the socket wrench.
Next, you need a shorter socket or finish backing the bolt out with a crescent, box or combination wrench.
I tried numerous things. This is how I finally got myself out of the predicament: I jacked up the engine and then hammered out the socket wrench.
Other things I tried or thought of trying:
I'm an idiot.
I ended up knocking it out with a hammer. No damage was done to my car, thankfully.
Yes, cut the nail as much as possible.
Then place a long metal rod on top of the partially sawed screw, and bang it hard with a hammer!