Why would you even want to do all that when CFW is 100% safe to use even on latest firmware and offers tons of options for anything you may ever need? Unless you plan to sell it or something (since selling systems with CFW is illegal), just keep CFW:/
But if you REALLY want to do the retarded thing and remove everything and don't have a NAND backup from before you installed CFW, then do this:
- Use System Settings to uninstall ALL pirated games/homebrews/etc.
- Use the GM9 script meant for uninstalling CFW
- Delete everything from your SD card
- Update to latest firmware if not already on it
Again, I HEAVILY advise against removing CFW, it's not gonna make you any less likely to ban if that's what you are worried about. ONLY remove it if you need to sell the system or something like that.