How to Remove Samsung Account from Samsung Phone or Tablet

1: Enable developer options (Settings -> About Phone/tablet -> Software information -> keep tapping on "Build number" until the messege says "you are now a developer")

2: go to developer options and enable USB Debugging.

3: Grab your PC and download SDK Platform Tools.

4: extract the zip file, go to the folder where you extracted it and press shift, right click and click on "open powershell window here"

5: connect your device to the PC via USB cable and make sure to authorise the pc.

6: type ./adb devices and press enter, your device should be listed.

7: type ./adb shell and press enter and tap on "allow" on the prompt on your device.

8: type pm uninstall -k --user 0 com.osp.app.signin and press enter

9: Now the samsung account is removed from your device

10: type pm install-existing com.osp.app.signin and press enter

11: disconnect your device from the PC.

12: enter new samsung account login. Will need to verify it with 2-step sms if its enabled

13: Factory reset if required. Requires new samsung account password to reset. Phone will reset with no samsung account.

Examples

18Aug23 Samsung Galaxy S20+ 5G SM-G986B Serial number B8XK387FJQP Android version 12:

PS C:\Users\Dell\Downloads\platform-tools_r34.0.4-windows> cd .\platform-tools\
PS C:\Users\Dell\Downloads\platform-tools_r34.0.4-windows\platform-tools> ./adb devices
List of devices attached
B8XK387FJQP     unauthorized (Forgot to trust phone)

This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

(Now I Trusted the phone)

PS C:\Users\Dell\Downloads\platform-tools_r34.0.4-windows\platform-tools> ./adb devices
List of devices attached
B8XK387FJQP     device

PS C:\Users\Dell\Downloads\platform-tools_r34.0.4-windows\platform-tools> ./adb shell
y2s:/ $ pm install-existing com.osp.app.signin
Package com.osp.app.signin installed for user: 0
y2s:/ $ pm uninstall -k --user 0 com.osp.app.signin
Success
y2s:/ $ pm install-existing com.osp.app.signin
Package com.osp.app.signin installed for user: 0
y2s:/ $
PS C:\Users\Dell\Downloads\platform-tools_r34.0.4-windows\platform-tools>