Skip to main content

Operations: How to Delete an Index

DeleteIndexOperation is used to remove an index from a database.

Syntax

public DeleteIndexOperation(string indexName)
Parameters
indexNamestringname of an index to delete

Example

store.Maintenance.Send(new DeleteIndexOperation("Orders/Totals"));