How To Perform A Complete Factory Reset On Devices Safely?
https://sites.google.com/view/factory--reset/home
To perform a complete factory reset safely, first back up important files, contacts, photos, and passwords to cloud storage or an external device. Open your device settings, select the reset or recovery option, and choose Factory Reset or Erase All Data. Ensure the battery is charged and remove linked accounts if selling the device. After confirmation, the device will restart and return to original factory settings securely.