def delete(tag_or_index, options={})
      check_key(tag_or_index, :delete)
      # We need to delete the specified child element's parent reference in addition to removing it from the tag Hash.
      element = self[tag_or_index]
      if element
        element.parent = nil unless options[:no_follow]
        @tags.delete(tag_or_index)
      end
    end
def delete(tag_or_index, options={})
      check_key(tag_or_index, :delete)
      # We need to delete the specified child element's parent reference in addition to removing it from the tag Hash.
      element = self[tag_or_index]
      if element
        element.parent = nil unless options[:no_follow]
        @tags.delete(tag_or_index)
      end
    end
Deletes the specified element from this parent.

 @param [String, Integer] tag_or_index a ruby-dicom tag string or item index
 @param [Hash] options the options used for deleting the element
 option options [Boolean] :no_follow when true, the method does not update the parent attribute of the child that is deleted
 @example Delete an Element from a DObject instance
   dcm.delete("0008,0090")
 @example Delete Item 1 from a Sequence
   dcm["3006,0020"].delete(1)