Danalock homeKit firmware reinstall

Hello,

I would like to ask about Nordic SoC reinstallation. The Danalock HomeKit V3 smart lock has a relatively old firmware version 1.1.11. How to completely reinstall the firmware with bootloader?

Suppose someone buys a second hand Danalock (cheaper than new one). But afraid that the firmware contains malicious code and wants to reinstall it completely. Can this be done? If so, how?