To take drastic action / To cut one's losses
Literally 'to cut through the healthy part'. Means dealing with a problem decisively, even if it hurts, to prevent worse consequences later.
The situation was unsustainable, so she decided to cut her losses.
We have to take drastic action before it gets worse.
—What did you do with that project? —I cut my losses and cancelled it.