public static void deleteProperty(Element element, String name) {
        // Remove property from cache.
        String[] propName = parsePropertyName(name);

        // Search for this property by traversing down the XML hierarchy.
        for (int i = 0; i < propName.length - 1; i++) {
            element = element.element(propName[i]);
            // Can't find the property so return.
            if (element == null) {
                return;
            }
        }
        // Found the correct element to remove, so remove it...
        element.remove(element.element(propName[propName.length - 1]));
    }
<p>Deletes the specified property.</p>
<p>You MAY NOT use the attribute
markup (using a ':' in the last element name) with this call.
deleteProperty() removes both the containing text, and the element itself along with
any attributes associated with that element.</p>

@param element the element to delete the property from
@param name the property to delete.
xmppserver/src/main/java/org/jivesoftware/util/ElementUtil.java