def deleted_count(self):
        """The number of documents deleted."""
        if isinstance(self.raw_result, list):
            return len(self.raw_result)
        else:
            return self.raw_result
def deleted_count ( self ) : if isinstance ( self . raw_result , list ) : return len ( self . raw_result ) else : return self . raw_result
The number of documents deleted.