You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.0 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

curl \
	http://{serverName}/databases/{databaseName}/indexes/{indexName} \
	-X DELETE

Request

Query parameter Required Description
indexName Yes name of an index to delete

Response

Status code Description
204 No content

Example I

Delete index Orders/Totals.

curl -X DELETE "http://localhost:8080/databases/NorthWind/indexes/Orders/Totals" 
< HTTP/1.1 204 No Content