Using the strip command. I'm not sure exactly which parts it strips (or whether it has options to strip different parts), but try it out, perhaps it'll work.

/Pepijn