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

 @example Delete all retired elements from a DObject instance
   dcm.delete_retired