You can uninstall it and it will still retain some weird connection with your folders where stuff still saves to a one-drive folder which becomes impossible to delete or use normally, unless you re-install one-drive and do a bunch of stuff in the one-drive program-specific settings, and then re-un-install it, in which case it might stick.
I wasn’t able to set up my computer early this year without using an account (maybe I just missed the option, but if it was there they buried it).
I was able to switch it to local afterwards, but there was already an unwanted link with one-drive and several of my folders, which persisted even after uninstalling one-drive, and apparently can only be fixed within one-drive’s specific settings.
To fix it I had to re-install the program, and then re-uninstall it when everything was finally disconnected. Fuck microsoft.