@classmethod
def delete_all(cls):
    """
        deletes all documents from the collection
        :return: the count of deleted documents
        """
    return cls.get_collection().delete_many({}).deleted_count
