A detection rail can be obtained by crafting, or by breaking a previously-placed detection rail.
To remove a detection rail, mine it. Detection rails can be broken fairly easily by hand, but can be broken quicker by using a Pickaxe.
A detection rail will also be removed and drop itself as an item:
- if its attachment is moved, removed, or destroyed.
- if water flows into the detection rail's space.
If lava flows into a detection rail's space, the detection rail will be destroyed without dropping itself as an item.
Crafting a Detection Rail takes six Metallic Ingots, one Scarlet Rock, and one 1500-Megawatt-Scarlet-Rock-Super-Colliding Super Button.