title: How to Kick the User or Member from XMPPRoom
body: <p>I implemented the following code for kicking the user from XMPPRoom. I used XMPPFramework. See below code</p>
  
  <pre><code>NSXMLElement *destroy = [NSXMLElement elementWithName:@"iq"];
      [destroy addAttributeWithName:@"type" stringValue:@"set"];
      [destroy addAttributeWithName:@"from" stringValue:[NSString stringWithFormat:@"%@",[_dictionaryStadium objectForKey:@"RoomID"]]];//stadium nam
      [destroy addAttributeWithName:@"to" stringValue:[NSString stringWithFormat:@"%@@%@",@"+923425623868",kXMPPHost]]; // user number.
  
  NSXMLElement *reason = [NSXMLElement elementWithName:@"reason" stringValue:@"leave"];
  
  NSXMLElement *item = [NSXMLElement elementWithName:@"item"];
  [item addAttributeWithName:@"role" stringValue:@"none"];
  [item addAttributeWithName:@"nick" stringValue:@"nawazish2"]; // usernickname
  
  [item addChild:reason];
  
  NSXMLElement *query = [NSXMLElement elementWithName:@"query"];
  [query addAttributeWithName:@"xmlns" stringValue:@"http://jabber.org/protocol/muc#admin"];
  
  
  [query addChild:item];
  
  [destroy addChild:query];
  
  
  [kKXMPPManager.xmppStream sendElement:destroy];
  [kKXMPPManager.xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];
  </code></pre>
  
  <p>When sending a request I received an error. But I received an error, Ex: <code>service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/&gt;</code>.</p>
  
  <p>Below are my sending and receiving request through XMPP.</p>
  
  <p><strong>Sending Request:</strong></p>
  
  <pre><code>SEND: &lt;iq type="set" from="abkcak@conference.mydomain.com" to="+923425623868@mydomain.com"&gt;&lt;query xmlns="http://jabber.org/protocol/muc#admin"&gt;&lt;item role="none" nick="nawazish2"&gt;&lt;reason&gt;leave&lt;/reason&gt;&lt;/item&gt;&lt;/query&gt;&lt;/iq&gt;
  </code></pre>
  
  <p><strong>Received Request:</strong></p>
  
  <pre><code>RECV: &lt;iq xmlns="jabber:client" type="error" from="+923425623868@mydomain.com" to="+923472447462@mydomain.com/b228fc86"&gt;&lt;query xmlns="http://jabber.org/protocol/muc#admin"&gt;&lt;item role="none" nick="nawazish2"&gt;&lt;reason&gt;leave&lt;/reason&gt;&lt;/item&gt;&lt;/query&gt;&lt;error code="503" type="cancel"&gt;&lt;service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/&gt;&lt;/error&gt;&lt;/iq&gt;
  </code></pre>
  
  <p>Please let me know how can I solve the issues of kick user. I searched so many articles and implement those but all in vein.</p>
  
  <p>Thanks</p>