Lloyd Rayney has lost his appeal against a recommendation that he be struck off from practising law in WA.

Today, the WA Court of Appeal dismissed his application against the State Administrative Tribunal’s recommendation, leaving Mr Rayney’s future as a lawyer up in the air.

The former state prosecutor and barrister was last year found guilty of professional misconduct by the SAT for secretly recording his wife before her death and deliberately misleading a court and magistrate about it.

The tribunal recommended the former top prosecutor be struck off saying “such conduct should not be tolerated ... and is incompatible with anyone in the legal profession”.

The recommendation was made in January 2018 but was not allowed to be reported until May last year.

Mr Rayney appealed against that recommendation arguing he wasn’t given a fair trial, an adequate opportunity to defend himself and that the tribunal erred by not taking into account his mental health.

He had been diagnosed with PTSD in 2007.

Find out what Lloyd Rayney’s next moves will be to save his legal career in The West Australian’s subscriber exclusive story.