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
=== "Marqo Open Source"
=== "cURL"
curl -XDELETE http://localhost:8882/indexes/my-first-index
=== "Python"
results = mq.index("my-first-index").delete()
Response: 200 OK
{"acknowledged": true}
=== "Marqo Cloud"
=== "cURL"
curl -XDELETE https://api.marqo.ai/api/v2/indexes/my-first-index \
-H 'x-api-key: XXXXXXXXXXXXXXX'
=== "Python"
results = mq.index("my-first-index").delete()
Response: 200 OK
{"acknowledged": true}