Peter Murrell, the SNP’s chief executive and Nicola Sturgeon’s husband, has resigned with immediate effect.

Members of the SNP’s ruling National Executive Committee (NEC) had threatened a vote of no confidence in him after the departure of the SNP media chief Murray Foote, who left on Friday amid a row over the party’s membership numbers.

Mr Foote, the former editor of the Daily Record, said he was resigning from the SNP after being let down by party HQ while “acting in good faith”.

He told how he issued “agreed party responses” to the media in order to rubbish a newspaper report that the SNP had suffered a loss of 30,000 members.

But this week the party admitted its membership had dropped by more than 30,000 below its previously published figure – indicating leading figures in the party wanted the collapsing membership to remain secret.

It led to an explosive row in which Mr Murrell was effectively forced from office – just a month after his wife resigned.

Want to see more SNP fails? – Health Matters

Sign up to receive our weekly newsletter and join the fightback against Scottish Nationalism.