This will destroy all data. Backup your data.
From the iOS device to be reset:
1 Go to Settings > Tap your name at the top > iCloud > Turn Find My iPhone / iPad Off
2 Enter your Apple ID password when prompted
3 Next go to Settings > General > Reset
4 Choose Reset All Content and Settings