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
$deleteIndexOp = new DeleteIndexOperation("Orders/Totals");

// Execute the operation by passing it to Maintenance.Send
$store->maintenance()->send($deleteIndexOp);

Syntax

DeleteIndexOperation(?string $indexName)
Parameters Type Description
$indexName ?string Name of index to delete