Skip to content

Delete index

Delete an index.

Index creation and deletion can not be called concurrently. If you try to delete an index when there is an ongoing creation or deletion of an index, the request will fail, you will receive a 409 OperationConflictError.


Note: This operation cannot be undone, and the deleted index can't be recovered

DELETE /indexes/{index_name}

Example

curl -XDELETE http://localhost:8882/indexes/my-first-index
results = mq.index("my-first-index").delete()

Response: 200 OK

{"acknowledged": true}