Remove Gun from Skeletal Mesh

You probably want MUTABLE plugin:

Get it (or sample project), load that character, and cut off weapon with plugin, then you can bake modified skeleton.