milvus-logo
LFAI
< Docs

drop_resource_group()

This method drops a specified resource group. Note that the resource group to be dropped should not hold any query node.

Invocation

drop_resource_group(name, using='default')

Parameters

ParameterDescriptionTypeRequired
nameName of the resource group to be created.StringTrue
usingMilvus connection used to create the collection.StringFalse

Return

No return

Example

import pymilvus

source = 'rg'
target = '__default_resource_group'
num_nodes = 1

try:
    utility.transfer_node(source, target, num_nodes, using="default")
    utility.drop_resource_group(source, using="default")
    print(f"Succeeded in dropping {source}.")
except Exception:
    print(f"Something went wrong while dropping {source}.")

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?