In TWRP, go to Wipe → Advanced Wipe and select the following partitions:
A custom recovery replaces the stock recovery environment, allowing you to wipe system partitions and install third-party zip files. Team Win Recovery Project (TWRP) is the industry standard. upgrade android 4.4.2 to 9.0
Before anything else, check if a miracle has occurred and your manufacturer has released an update. This is highly unlikely for a device on Android 4.4.2. In TWRP, go to Wipe → Advanced Wipe
Android 9.0 demands more resources than Android 4.4.2. To keep your upgraded device snappy: This is highly unlikely for a device on Android 4
Either keep your phone on KitKat with lightweight apps, or consider buying a low-cost modern Android device (even a $50 phone runs Android 11+).
Copy the ROM zip and GApps zip to your SD card. Flash in TWRP: Boot to TWRP.