to destroy sth that would make you rich, successful, etc.
kill the goose that lays the golden egg / eggs
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition