Delete Index Errors Operation



Delete errors from all indexes

# Define the delete index errors operation
delete_index_errors_op = DeleteIndexErrorsOperation()

# Execute the operation by passing it to maintenance.send
store.maintenance.send(delete_index_errors_op)

# All errors from ALL indexes are deleted

Delete errors from specific indexes

# Define the delete index errors operation from specific indexes
delete_index_errors_op = DeleteIndexErrorsOperation(["Orders/Totals"])

# Execute the operation by passing it to maintenance.send
# An exception will be thrown if any of the specified indexes do not exist
store.maintenance.send(delete_index_errors_op)

# Only errors from index "Orders/Totals" are deleted

Syntax

class DeleteIndexErrorsOperation(VoidMaintenanceOperation):
    def __init__(self, index_names: List[str] = None): ...
Parameters Type Description
index_names List[str] List of index names to delete errors from.
An exception is thrown if any of the specified indexes does not exist.