@Override
    public void contactDeleted(Roster roster, RosterItem item) {
        JID rosterOwner = XMPPServer.getInstance().createJID(roster.getUsername(), null);
        JID deletedContact = item.getJid();

        cancelSubscriptionToPEPService(deletedContact, rosterOwner);
    }
Implements UserItemsProvider, adding PEP related items to a disco#items
result.
xmppserver/src/main/java/org/jivesoftware/openfire/pep/IQPEPHandler.java