The phrase
"to pull the plug" means to turn off or stop something abruptly or to cancel or end it suddenly. It can be used in various contexts, like stopping a machine, ending a project or event, or even discontinuing life support for someone who is very ill.
Full definition