DropPartition()
This method drops a specific partition from a collection.
func (c *GrpcClient) DropPartition(ctx context.Context, collName string, partitionName string) error
Request Parameters
Parameter | Description | Type |
---|---|---|
| Context for the current call to work. |
|
| Name of a collection |
|
| Name of the partition to drop. |
|
Return
Null
Errors
Any error in the execution of the request. Possible errors are as follows:
-
ErrClientNotReady
: The client is not connected to Milvus. -
ErrCollectionNotExists
: The specified collection does not exist. -
A partition with the specified name does not exist.
-
The call to this API fails.
Example