I bought a new phone and I want to sell the old one
This is probably the fastest way to reset the settings to the factory defaults. For this purpose, Android has special service combinations – codes that you have to enter in the “Phone” application in dialing mode. Each manufacturing company flashes its gadgets differently, so you should find the right combination for your model before using the reset codes. Since the Android version is updated all the time, the service codes can change as well. After entering the code, all user information will be deleted from the device and it will return to the factory settings.
Look, my mom asked me the exact same question recently, and I sent her an article about does factory reset delete contacts. This tutorial helped her clean her phone and sell it, so I think this is what you need. All the steps are detailed there, so you won’t have any problems. By the way, what phone did you buy? I also plan to update my phone soon.