In TWRP: Wipe -> Advanced Wipe -> Select Dalvik, System, Data, Cache. Do not wipe Internal Storage unless you want to lose your ROM zip.
Flashing a custom ROM will wipe your data. Back up photos and files. Lenovo A5500-hv Custom Rom