Drop Index
POST
http://${MILVUS_URI}/v2/vectordb/indexes/drop
This operation deletes index from a specified collection.
Example
export MILVUS_URI="localhost:19530"
curl --location --request POST "http://${MILVUS_URI}/v2/vectordb/indexes/drop" \
--header "Content-Type: application/json" \
--data-raw '{
"indexName": "my_vector",
"collectionName": "custom_setup_not_indexed"
}'
Possible response is as follows:
{
"code": 0,
"data": {}
}
Request
Parameters
Header parameters
Parameter Description Request-Timeout
integer
The timeout duration for this operation.
Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.Authorization
string
The authentication token.No query parameters required
No path parameters required
Request Body
{
"dbName": "string",
"collectionName": "string",
"indexName": "string"
}
Parameter | Description |
---|---|
dbName | string The name of the database to which the collection belongs. Setting this to a non-existing database results in an error. |
collectionName * | string The name of the target collection. Setting this to a non-existing collection results in an error. |
indexName * | string The name fo the target index. |
Response
None
Response Bodies
- Response body if we process your request successfully
{
"code": "integer",
"data": {}
}
- Response body if we failed to process your request
{
"code": integer,
"message": string
}
Properties
The properties in the returned response are listed in the following table.
Property | Description |
---|---|
code | integer Indicates whether the request succeeds.
|
message | string Indicates the possible reason for the reported error. |
data | object |