If you want to stop OneDrive from functioning entirely on your computer without uninstalling it, you can unlink your account. This stops the syncing process completely.
If you never use OneDrive, you can uninstall it: remove onedrive as default save location