How to upgrade Z-Wave plugin but keep rest of OH intact?

Here is a script and also documentation if you are going to do it manually…

In case you have a lot of Things that need to be deleted…