Thank you for the swift response Brendan.
If the lender objects to your name coming off the deeds, you can do a side agreement with your wife anyway where you give up all interest in the house.
Would such an informal side agreement with my ex wife remove me from a CGT tax liability?