It’s always a good idea to do a format once every few month or even when you first get your new device.
There’s two ways to do a hard format to the device memory:
1). Once the device is powered on and at the home screen type *#7370# and then enter your security code (default is 12345) and then your device will restart and reset.
2). To hard reset, follow the steps below.