def delete_private
      # Iterate all children, and repeat recursively if a child itself has children, to delete all private data elements:
      children.each do |element|
        delete(element.tag) if element.tag.private?
        element.delete_private if element.children?
      end
    end
def delete_private
      # Iterate all children, and repeat recursively if a child itself has children, to delete all private data elements:
      children.each do |element|
        delete(element.tag) if element.tag.private?
        element.delete_private if element.children?
      end
    end
Deletes all private data/sequence elements from this parent.

 @example Delete all private elements from a DObject instance
   dcm.delete_private
 @example Delete only private elements belonging to a specific Sequence
   dcm["3006,0020"].delete_private