to make sb lose their confidence and enthusiasm
knock the stuffing out of sb
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition