Delete Index Operation


  • Use DeleteIndexOperation to remove an index from the database.

  • The index will be deleted from all the database-group nodes.

  • In this page:


Delete index example

// Define the delete index operation, specify the index name
var deleteIndexOp = new DeleteIndexOperation("Orders/Totals");

// Execute the operation by passing it to Maintenance.Send
store.Maintenance.Send(deleteIndexOp);
// Define the delete index errors operation, specify the index name
var deleteIndexOp = new DeleteIndexOperation("Orders/Totals");
                
// Execute the operation by passing it to Maintenance.SendAsync
await store.Maintenance.SendAsync(deleteIndexOp);

Syntax

public DeleteIndexOperation(string indexName)
Parameter Type Description
indexName string Name of index to delete