What happens when you erase your hard drive Mac? Answer Erasing your Mac permanently deletes its files. If you want to restore your Mac to factory settings, such as to prepare it for a new owner, first learn what to do before you sell, give away, or trade in your Mac.