github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/drop_index.md (about) 1 # Drop Index 2 3 API to drop index from vector field of a specified collection. 4 5 ## Params 6 7 | Parameter | Description | Type | 8 | ------------ | ------------------------------------------------------------ | ------------------------ | 9 | `ctx` | Context to control API invocation process. | context.Context | 10 | `collName` | Name of the collection to drop index from. | String | 11 | `fieldName` | Name of the field to drop index from. | String | 12 13 14 ## Response 15 16 `err`: error in the process (if any). Possible errors are listed below: 17 18 - `ErrClientNotReady`, error that the client is not connected. 19 20 - `ErrCollectionNotExists`, error that collection with the specified name does not exist. 21 22 - error that the specified field is not valid. 23 24 - error that API invocation failed. 25 26 27 ## Example 28 29 ```go 30 ctx := context.Background() 31 // cli is a valid Client instance 32 err := cli.DropIndex(ctx, "TestCollection", "Vector") 33 // handles the error not nil 34 ```