cast aside

Intermédiaire supérieur (B2) formal

To throw something away or stop caring about it, as if it means nothing to you.

"After decades of loyal service, he was cast aside when the new management took over."