milvus-logo
LFAI
< Docs
  • RESTful
    • v2

Release Partitions

POST
http://${MILVUS_URI}/v2/vectordb/partitions/release

This operation releases the data of the current partition from memory.

Example

export MILVUS_URI="localhost:19530"

curl --location --request POST "http://${MILVUS_URI}/v2/vectordb/partitions/release" \
--header "Content-Type: application/json" \
--data-raw '{
    "partitionNames": [
        "_default",
        "january"
    ],
    "collectionName": "quick_setup"
}'

Possible response is similar to the following

{
    "code": 0,
    "data": {}
}

Request

Parameters

  • Header parameters

    ParameterDescription
    Request-Timeoutinteger
    The timeout duration for this operation.
    Setting this to None indicates that this operation timeouts when any response arrives or any error occurs.
    Authorizationstring
    The authentication token.
  • No query parameters required

  • No path parameters required

Request Body

{
    "dbName": "string",
    "collectionName": "string",
    "partitionNames": []
}
ParameterDescription
dbNamestring
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.
partitionNamesarray
The list of names of the target partitions.
partitionNames[]string

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.

PropertyDescription
codeinteger
Indicates whether the request succeeds.
  • 200: The request succeeds.
  • Others: Some error occurs.
messagestring
Indicates the possible reason for the reported error.
dataobject
Feedback

Was this page helpful?