How to Unsocket Gems
- 1). Travel to a town area where you will not be attacked while working the spell, such as the Rogue Encampment or Lut Gholein areas. Open your menu and navigate to the Horadric Cube menu item, represented by a six-sided black and gold cube.
- 2). Drag a Hel Rune, a Scroll of Town Portal, and the weapon whose socket you wish to clear onto the Horadric Cube menu item to cast the unsocketing spell. Hel Runes and Scrolls of Town Portal can be picked up from slain monsters or purchased from the town shopkeeper.
- 3). Close the Horadric Cube screen to return to your menu. The gem is unsocketed from your weapon.
Source...