title: Delete or update payload item in pubsub
body: <p>I have one problem, I need to delete payload item from pubsubitem table from database programmatically according to jid.I'm using openfire and smack api.</p>
  
  <p>It work like everytime when i call leaf.send or publish everytime new entry is added in database. </p>
  
  <p>So, I need to that entry update or delete old one and add new.But not getting any idea how can i do it.Any help appreciated.
  thanks </p>
  
  <pre><code> leaf.deleteItem(leaf.getSubscriptions().get(0).getJid().toString());
  
   leaf.publish(new PayloadItem("Chandigarh" + "*" + System.currentTimeMillis(),new SimplePayload("Online", "stage:pubsub:simple",
                                                                          "&lt;book xmlns='" + sharedPreferences.getString("user_id", "") + "," + gpsTracker.getLatitude() + "," + gpsTracker.getLongitude() + "'&gt;&lt;title&gt;" + "Offline user" + "&lt;/title&gt;&lt;/book&gt;")));
  </code></pre>