You should reset your Android device and erase all of your personal data before you sell it, trade it in, or give it away.
Resetting your Android device to factory settings erases all data on the device and clears out unnecessary files. The reset process wipes all your information from it, including private data, messages ...