A PM can be removed by a vote of no confidence.
https://commonslibrary.parliament.uk/votes-of-no-confidence/