🧬 Embedding Documents
Delete Documents (bulk)
This endpoint deletes multiple embedding documents.
DELETE
/
v1
/
indexes
/
{indexId}
/
documents
/
bulk
Header
Body
curl --location --request DELETE 'https://api.getmetal.io/v1/indexes/{indexId}/v1/documents/bulk' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
--data-raw '{
"ids": ["id1", "id2"],
}'
{
"data": {
"ids": ["id1", "id2"]
}
}
Auth Headers
x-metal-api-key
string
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Body
ids
string[]
requiredArray of document ids to delete
Response
data
object
curl --location --request DELETE 'https://api.getmetal.io/v1/indexes/{indexId}/v1/documents/bulk' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
--data-raw '{
"ids": ["id1", "id2"],
}'
{
"data": {
"ids": ["id1", "id2"]
}
}