Declan Doocey withdrew his candidacy for the party in the next general election just minutes before members cast their ballots this evening.