*This is called abandoning taints by developing (bhāvanā pahātabbā) ( Sabbasava sutta).
Internal tranquility through breath meditation will prevent taints of sensuality from arising as there is no room for the senses to be engaged in other activities other than the perception, feeling and directed evaluation (applied and sustained thoughts) of breath. This happen specially after mindfulness of the breath becomes immersed in the body. The metaphor Buddha gave here was the six animals tied to a strong pole in Chappana sutta. In Jhana states too taints of sensuality are abandoned. However taints of becomingmay still exists.
The difference in insight meditation is that thoughts arrive in the mind from six senses but the mind does not give any value to them as seeing them as impermanent, suffering, and not-self. This will not allow thoughts to proliferate any further. Craving does not arise here. The thoughts die in the mind itself without mental proliferations (papañca) generating taints. This method of training finally abandons all taints.