How to remove a stuck variable?

“Remove unused variables” did work, but that’s not ideal as it removed many others too.