เสร็จศึกฆ่าขุนพล

Etymology
. Literally "kill the generals after they complete their duties at war".

Proverb

 * 1)  to harm, kill or oust a person after he finishes his work for you or is no longer of use to you.