It’s time for a factory ... on your old Mac, so only do this after you’re happy that you’ve all the files you want. Recent versions of macOS have an Erase All Content and Settings button ...
Planning to sell or give away your iMac, MacBook Air, or MacBook Pro ... after factory resetting their Mac before selling it or trading it in. This will wipe out user settings and restore security ...