Before you select the factory reset option for an old phone, make sure you've gone through these steps before its too late.
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 ...