Walk the plank

To be forced to resign from a job.

The vice-president was forced to walk the plank when the new president joined the company.