so you need to use one of this tools to go back to stock SamsungOS :
- Samsung Official Odin3 windows
Revert Samsung Device to stock ROM on Windows PC - Samsung Official Odin4 linux
OFFICIAL Samsung Odin v4 1.2.1 - For Linux - Linux Galaxy-Flasher that can manage Thor, Odin4 or Heimdall
Galaxy-Flasher v0.7.0, the ultimate graphical tool for Samsung devices