The answer is extinction. In classical conditioning, this occurs when a conditioned stimulus is not anymore matching with an unconditioned stimulus. While in operant conditioning, this can happen if the trained behavior is not anymore strengthened or if the kind of support used is no longer satisfying.