I had the same issue while making a skeleton in Unreal. I was able to remove them by going to ‘Asset → Remove Unused Bones from Skeleton’ while in the skeleton editor!