How do I change the default Apple ID on my Mac Book
How do I change to a different Apple ID
Mac Pro
How do I change to a different Apple ID
Mac Pro
Are you sure you want to erase your Mac? See this quote "Back up your data, then restore to factory settings by turning off certain features and services, erasing your Mac, and reinstalling macOS"--from the link Eric Root's posted (Selling old Mac). Maybe you just want to Change your Apple ID https://support.apple.com/en-us/HT202667. If you do, then use the second link he posted afterwards: What to do after you change your Apple ID or password - Apple Support
The best way to do that is to use the steps in the article below to make it belong to the new ID.
You can also use the article below as a guide of where to sign out/in, but all applications and updates, to include system updates, will belong to the old ID.
What to do after you change your Apple ID or password - Apple Support.
thank you this helped
You are welcome.
How do I change the default Apple ID on my Mac Book