Delete unused layers?

Recently, I sent a layout of my family at Christmas to a friend by email. When he replied, the layout was still attached but when I viewed the attached layout, it showed ALL the layers, even the ones I had “hidden”. Needless to say, it was a mess. Was this a “one-off” issue or should I make sure I’m deleting every “unused/hidden” layer and any parts that are outside the background before saving as a JPG. I’ve never seen this happen, before.