1. After TWRP booted click on "Wipe"
2. Click on "Format Data"
3. Type "yes" and confirm format action
4. Once format data is done click on the "Back" button.
5. Now click on "Advanced Wipe"
6. Check
7. Swipe to confirm wipe action
8. Once wipe is done, click on the back button to go back to TWRPs main screen. Click on the "Reboot" button.
9. Click on "Recovery", after that Swipe to reboot.
10. Done! Wait until your device rebooted into recovery, now you can flash any rom (made for your device) you like.