# HG changeset patch
# User Samuel Trégouët <samuel.tregouet@logilab.fr>
# Date 1493977634 -7200
#      Fri May 05 11:47:14 2017 +0200
# Node ID 46ca26089efb0df1ed6114f645e3540033b5e7f9
# Parent  1c4e7b35e611717b8167756ac269d365500c8597
[hook] delete_doc is a staticmethod => remove `self` argument

diff --git a/cubicweb_elasticsearch/hooks.py b/cubicweb_elasticsearch/hooks.py
--- a/cubicweb_elasticsearch/hooks.py
+++ b/cubicweb_elasticsearch/hooks.py
@@ -66,7 +66,7 @@
 class IndexEsOperation(hook.DataOperationMixIn, hook.Operation):
 
     @staticmethod
-    def delete_doc(self, es, **kwargs):
+    def delete_doc(es, **kwargs):
         try:
             # TODO option for async ?
             es.delete(**kwargs)