The #untrap extended command will attempt to disable an adjacent trap if it can be disabled. This has a special interaction with pits, bear traps and spider webs, as it will instead attempt to help out any monster trapped in one, which may result in said monsters becoming peaceful. It is a good idea to untrap your pet should it fall victim to a beartrap or other trap. Lawful characters occasionally get a +1 alignment bonus for helping monsters out of a trap ("You feel that you did the right thing.") When attempting to #untrap a squeaky board, the player will be asked for an item to apply, for which the intended response is a potion of oil or a can of grease with charges. Successfully untrapping a land mine or bear trap will recover a trap object that can later be applied by the player. Untrapping an arrow trap or dart trap will recover the appropriate type of projectiles. Many traps cannot be disarmed.
If the number_pad-option is on, you can press u to untrap.