You should be able to run a filter in your notation software (after Select All), then either filter for the chord symbols (then copy/paste into another song form) or select the "B" notes and delete.
Does this make sense? What software are you using?