The answer is "Aversion therapy".
Aversion therapy is a type of behavior treatment in which an aversive (causing a solid sentiment of abhorrence or appall) upgrade is matched with an unfortunate conduct so as to lessen or dispose of that conduct.
The objective of aversion therapy is to diminish or dispense with unfortunate practices. Treatment centers around changing an explicit conduct itself, not at all like knowledge arranged methodologies that attention on revealing oblivious intentions so as to deliver change.