Skip to main content

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);

Syntax

public DeleteIndexOperation(string indexName)
ParametersTypeDescription
indexNamestringName of index to delete