public void purge() {
        Log.trace("Purging items that were published to the node and broadcast purge notification to subscribers.");
        XMPPServer.getInstance().getPubSubModule().getPersistenceProvider().purgeNode(this);
        // Broadcast purge notification to subscribers
        // Build packet to broadcast to subscribers
        Message message = new Message();
        Element event = message.addChildElement("event", "http://jabber.org/protocol/pubsub#event");
        Element items = event.addElement("purge");
        items.addAttribute("node", nodeID);
        // Send notification that the node configuration has changed
        broadcastNodeEvent(message, false);
    }
Purges items that were published to the node. Only owners can request this operation.
This operation is only available for nodes configured to store items in the database. All
published items will be deleted except the last published item.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/LeafNode.java