Yes, a factory reset will delete all data. But you need to make sure to take backup of the important files.