How owner can unsubscribe follower from the pubsub node

Hello,

I am not able to unsubscribe the follower from my pub sub-node.
Let m explain the scenario-

User A is an owner of the pub-sub “xyz”.

User B is subscribed to the “xyz” node.

and now user A want to unsubscribe the user B from his pub-sub “xyz”.

Is it possible?
if possible then how can i do this?

Looking at the XEP, I don’t think this is possible right away. You could however chose a different Access Model for your PubSub node.

Should be possible as per the spec:

https://xmpp.org/extensions/xep-0060.html#owner-subscriptions-modify


<iq type='set'
    from='hamlet@denmark.lit/elsinore'
    to='pubsub.shakespeare.lit'
    id='subman2'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
    <subscriptions node='princely_musings'>
      <subscription jid='bard@shakespeare.lit' subscription='none'/>
    </subscriptions>
  </pubsub>
</iq>

Ah, haven’t seen that. Extemporaneously I can’t tell, if Smack is able to do this, but its possible.