Default What do I need to do before selling my phone?

Hey everyone,

My note 3 is currently rooted with custom rom and I am ready to sell my phone.
What are the steps I need to take before selling my phone if I want to delete everything
but still want to keep my current custom rom and root? I need to delete
everything internally (how do I accomplish this using TWRP?) . Thanks in advance!