It is a well-known theorem that if $\kappa$ is measurable, then there is a generic extension in which $\kappa$ is no longer weakly compact, but we can force its weak compactness back and recover the full measurability.
Is it possible to refine this result?
Question. Suppose that $\kappa$ is measurable, is there a forcing $\Bbb{P*Q}$ which preserves the measurability of $\kappa$, but $\Bbb P$ only preserves its weak compactness/Ramsey/other large cardinal properties while violating measurability?