Performing a factory reset in an iPhone will erase all files and settings on the device. After the factory reset, you can use the device as a new one.