T-Mobile or any other platform that you trade your iPhone with will wipe out all personal data before reselling or recycling the device.