This datapack adds simple crafting recipes to turn iron tools and armor back into iron ingots. You can salvage your iron items by putting them in the crafting table to receive majority of the iron ingots you used to make the tool.
Helmet -> 3 iron ingots
Chestplate -> 5 iron ingots
Leggings -> 4 iron ingots
Boots -> 2 iron ingots
Sword -> 1 iron ingot
Pickaxe -> 2 iron ingots
Axe -> 2 iron ingots
Shovel -> 2 sticks (to prevent infinite recycling of shovels)
Hoe -> 1 iron ingot