code: def del_doc(self, doc):
          
          logger.info("Removing doc from the index: %s" % doc)
          doc = doc.clone()  # make sure it can be serialized safely
          self.docsearch.index.del_doc(doc)
docs: Delete a document