diff --git a/sleekxmpp/plugins/xep_0060/pubsub.py b/sleekxmpp/plugins/xep_0060/pubsub.py
index 894ceff..f9999f7 100644
--- a/sleekxmpp/plugins/xep_0060/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/pubsub.py
@@ -262,7 +262,7 @@ class xep_0060(base_plugin):
callback -- Optional reference to a stream handler function. Will
be executed when a reply stanza is received.
"""
- iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='get')
+ iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='set')
iq['pubsub_owner']['delete']['node'] = node
return iq.send(block=block, callback=callback, timeout=timeout)
diff --git a/tests/test_stream_xep_0060.py b/tests/test_stream_xep_0060.py
index cb93bbf..1d912ca 100644
--- a/tests/test_stream_xep_0060.py
+++ b/tests/test_stream_xep_0060.py
@@ -102,5 +102,27 @@ class TestStreamPubsub(SleekTest):
t.join()
+ def testDeleteNode(self):
+ """Test deleting a node"""
+ t = threading.Thread(name='delete_node',
+ target=self.xmpp['xep_0060'].delete_node,
+ args=('pubsub.example.com', 'some_node'))
+ t.start()
+
+ self.send("""
+
+
+
+
+
+ """)
+
+ self.recv("""
+
+ """)
+
+ t.join()
+
suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamPubsub)