The Reset Device to Factory Settings action resets the device to its factory state and deletes all data from the device. External storage (e.g. an SD card) can optionally be erased as well.