how do I clean everything off my phone before trading it in
From Google:
To factory reset your iPhone, back up your data first, then go to Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. Follow the on-screen prompts, enter your passcode/Apple ID, and confirm to securely erase all data, apps, and settings, reverting the device to its original state.