🔗 Indexes
Delete Index
This endpoint deletes an index and all documents within that index.
DELETE
/
v1
/
indexes
/
{indexId}
Header
Path
curl --location --request DELETE 'https://api.getmetal.io/v1/indexes/{indexId}' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
{
"accepted": true
}
Auth Headers
x-metal-api-key
string
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Params
indexId
string
requiredThe Index ID
Response
accepted
boolean
Whether the deletion was successful or not.
curl --location --request DELETE 'https://api.getmetal.io/v1/indexes/{indexId}' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
{
"accepted": true
}