To install a rom you format
And dalvik cache
Then flash rom/gapps
This won't delete your SD cards.
If you format SD card it will format it. Formats are found in mounts and storage in custom recovery.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?