github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/drop_partition.md (about) 1 # Drop Partition 2 3 API to drop a partition from a specified collection by name. 4 5 ## Parameters 6 7 | Parameter | Description | Type | 8 | ------------ | ------------------------------------------------------------ | ------------------------ | 9 | `ctx` | Context to control API invocation process. | context.Context | 10 | `collName` | Name of the collection to drop partition from. | String | 11 | `partitionName` | Name of the partition to drop. | String | 12 13 ## Response 14 15 `err`: error in the process (if any). Possible errors are listed below: 16 17 - `ErrClientNotReady`, error stands for the client is not connected 18 19 - `ErrCollectionNotExists`, error stands for collection of the specified name does not exist 20 21 - error that API invocation failed. 22 23 ## Example 24 25 ```go 26 ctx := context.Background() 27 // cli is a valid Client instance, assume test collection exists 28 err := cli.DropPartition(ctx, "TestCollection", "Partition1") 29 // handles the error not nil 30 ```