What do you mean by clean?
Svgs usually contain a lot of redundant and useless information. We clean the svgs using SVGO, https://github.com/svg/svgo (and a few of our own plugins) to get more beautiful svg files. The output often gets bloated by apps like Sketch, this way we end up with a better output.