Flashing ROM on a used Samsung Note 4
It's better to link the video so we know what you are exactly talking about.
My guess is you watched a video about rooting using ODIN. Yes, that won't wipe your device clean. However you can also use ODIN to flash entire firmware which cleans up everything on your device. 


Here's a guide to use ODIN to flash stock firmware.