If you are selling your Mac or giving it to someone else, you’ll need to erase and factor reset it and I’ll show you how to do it the right way in this video.
This works exactly the same on all types of Macs from laptops and desktops.
Make sure you backup your Mac before erasing it. You can use Timemachine and an external hard drive.
Here is a link to an external drive I use to backup my Mac: (my affiliate link)
amzn.to/4aj9cY5