github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/release_partitions.md (about) 1 # Release Partitions 2 3 API to release partitions by names. 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 release partitions from. | String | 11 | `partitionNames` | List of names of the partitions to release. | Slice of string | 12 13 ## Response 14 15 `err`: error in the process (if any). Possible errors are listed below: 16 17 - `ErrClientNotReady`, error that the client is not connected. 18 19 - `ErrCollectionNotExists`, error that the collection with 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.ReleasePartitions(ctx, "TestCollection", []string{"Partitions"}) 29 // handles the error not nil 30 ```