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}
cURL -XDELETE https://api.marqo.ai/api/v2/indexes/my-first-index \
-H 'x-api-key: XXXXXXXXXXXXXXX' 
results = mq.index("my-first-index").delete()

Response: 200 OK

{"acknowledged": true}