A Bronze Wrench is capable of rotating machines and removing them safely (with a ~20% chance of dismantling the machine into a machine block). Right clicking a machine with the wrench equipped will make its output side face the player. Holding shift while right clicking will make the output side face opposite the player. It can be upgraded to an Electric Wrench.
To use the Wrench to remove a machine, simply right-click the machine. Any items or energy stored in the machine will be lost when it is dismantled.
The Wrench's removing mechanic will override the machine's interface. Don't hold a wrench when you want to use your machines!
Without the Superwrench 100% mod, there is a chance (Aprox 70-90% success rate) that when you do, the machine will not be successfully removed and instead you'll be left with a gutted Machine Block.
To dismantle a transformer or a storage block right-click its output/selected face. Right-clicking any other face of a transformer or a storage block will move its output/selected face to the side you are clicking. Clicking while sneaking will move the output/selected face to the opposite side.