There are two ways to disable traps:
1. Disable Trap Potion
Buy this potion for orbs to disable a random trap.
2. Die more than seven times
If your character dies more than seven times, the game will automatically disable the trap that inflicted the most damage. The disabled trap will be slightly visible.