I posted a link to a YouTube video that shows the process
The settings for OneDrive are in the System Tray on your computer. The right side of your taskbar has the system tray. You may have to click the little ^ to see the hidden icons. Look for the one that looks like a cloud. Right-click on it and go to settings
There is a sequential process that needs to be followed. If you don't follow it in that order, it will screw things up
Before you attempt to unsynch and unlink Onedrive get an external drive on which to backup all your data in
Desktop
Documents
Pictures
If you don't backup it up you run the risk of losing that data.
Watch these videos first to get an idea of the process that is involved in getting your Computer back to normal before OneDrive hijacked all of your files.
https://www.youtube.com/watch?v=119bYD_A9mI
and
https://www.youtube.com/watch?v=A39B6H9T2uE
Very important to backup those files first
Windows 11 and Windows 10 process vary slightly however, you must follow the right sequence.