You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 4.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: Indexes: Delete

DeleteIndex is used to remove an index from a database.

Syntax

void DeleteIndex(string name);

Parameters
name string name of an index to delete

Example

store.DatabaseCommands.DeleteIndex("Orders/Totals");