How to remove Blender "useless" bones with "bone" parenting?

So you’re talking about attaching every mesh to bone with “Attach To” somewhere in Construction script?