public void DeleteItem(string id) { PubSubIQ iq = createCommand(PubSubCommandType.retract); Retract retract = (Retract)iq.Command; retract.AddItem(id); BeginIQ(iq, OnDeleteNode, null); }