Labour leader Jeremy Corbyn has quashed a motion at his party conference to oust his deputy, Tom Watson, by abolishing the position.
Mr Corbyn suggested the role should be reviewed instead, and was backed by the ruling National Executive Committee, a Labour source said.
A group of Labour MPs had urged the NEC to avoid an “internal civil war” when it should be preparing for an election.
Mr Watson called the move to oust him a “sectarian attack” on a “broad church”.
Speaking ahead of the party conference in Brighton, he told the BBC he found out late on Friday in a text message that a motion had been tabled by Jon Lansman, founder of Labour grassroots group Momentum.
He said he felt Mr Lansman “and his faction” were so angry about his position on Brexit they would “rather abolish me than have a debate about it”.
Mr Watson has urged Labour to “unequivocally back remain” and said he wants another public vote on the UK’s membership of the EU before any general election.
But Mr Corbyn wants to hold another referendum once Labour has won power, in which voters would have the choice to remain in the EU alongside a “credible” Leave proposal.
After his intervention, Mr Corbyn told reporters outside the conference centre that he “enjoyed” working with Mr Watson.
And Mr Lansman said he fully supported Mr Corbyn’s proposal to review the deputy leader post.
“We need to make sure the role is properly accountable to the membership while also unifying the party at conference. In my view, this review is absolutely the best way of doing that,” he said.
Analysis: Labour message ‘damaged’
By BBC political correspondent Susana Mendonca
Let’s face it – no-one likes finding out by text that they’re getting ditched.
But this wasn’t the morning after a bad date, this was the morning after the latest instalment in the saga that is Labour’s fractious relationship with itself.
And the deputy leader wasn’t happy at being told by text last night that a plot was afoot to ditch him by abolishing his post.
A “sectarian attack”, “pluralism not tolerated”, a “drive-by shooting” even, Tom Watson told the Today programme.
If this conference was supposed to be a moment for Labour to come together, place the focus on its policies and show the country it’s a unified force ready to lead after a general election, well, it didn’t start well.
The Parliamentary Labour Party’s letter to its governing body described the move as a “gross act of suppressing dissent”.
“These kinds of things happen in Venezuela,” said Mr Watson. Music to the ears no doubt of the Conservatives who’ve long been making those comparisons in relation to Labour’s leadership.
Jeremy Corbyn appears to be trying out a bit of damage limitation with talk now of a “review” of the role rather than immediate abolition.
But the damage to Labour’s message ahead of its conference appears to have been done.