I found a nice svg optimizer. I cleans them up nicely. It works very well with the svg’s produced by inkscape and reduces file sizes substantially.
It uses the simple command :
$ svgo -f ../path/to/folder/with/svg/files
in the terminal and all files in the folder will be cleaned up.
you can find it at: here.