@Override
    public void userDeleting(User user, Map<String, Object> params) {
        final JID bareJID = XMPPServer.getInstance().createJID(user.getUsername(), null);
        final PEPService pepService = pepServiceManager.getPEPService(bareJID, false);

        if (pepService == null) {
            return;
        }

        // Remove the user's PEP service, finally.
        pepServiceManager.remove(bareJID);
    }
Implements UserItemsProvider, adding PEP related items to a disco#items
result.
xmppserver/src/main/java/org/jivesoftware/openfire/pep/IQPEPHandler.java