Delete a record.

        :param record: Record instance.

def delete(self, record):
        """Delete a record.

        :param record: Record instance.
        """
        index, doc_type = self.record_to_index(record)

        return self.client.delete(
            id=str(record.id),
            index=index,
            doc_type=doc_type,
        )