Cut the ground from under someone’s feet
Withdraw support, expose or destroy their position, dates from the early 19th century.