code: public void deleteElement(Object parent, String name) {
  		Element element = getElement(parent, name);
  		if (element != null) {
  			Element group = (Element) element.getParentElement();
  			if (group != null) {
  				deleteRecursively(group, element);
  			}
  		}
  	}
docs: Delete this element from the graphics DOM structure.
  
  @param parent
  parent group object
  @param name
  The element's name.