When killed, an iron golem's corpse will be some number of the infamous iron chains, widely considered one of the most useless items in NetHack--although some players do find the occasional odd job for one, such as keeping an Elbereth activated or marking the Vibrating square. As iron chains are quite rare, it is worth consulting that entry when you dispatch an iron golem.