def drop_indexes(self):
"""Drops all indexes on this collection.
Can be used on non-existant collections or collections with no indexes.
Raises OperationFailure on an error.
"""
self.__database.client._purge_index(self.__database.name, self.__name)
self.drop_index("*")
评论列表
文章目录