Yes, you can erase all content and settings on your MacBook Air. For that, go to the Apple menu. Select System settings and then click on General. After that, choose Transfer or Reset and proceed with Erase All Contents and Settings.