remove_file_resource()Private Preview
Addedv3.0.x
Removes a file resource previously registered via add_file_resource() from the Milvus cluster. The call is idempotent: removing a name that is not currently registered completes successfully without raising an exception.
Request syntax
remove_file_resource(
name: str,
timeout: float | None = None,
**kwargs
)
PARAMETERS:
-
name (str) - The name of the resource to remove, as originally passed to
add_file_resource(). -
timeout (float | None) - The timeout duration (in seconds) for this operation. A value of
Noneindicates that no timeout is applied.
RETURNS:
None
Examples
from pymilvus import MilvusClient
client = MilvusClient(
uri="YOUR_CLUSTER_ENDPOINT",
token="YOUR_CLUSTER_TOKEN",
)
client.remove_file_resource(name="zh_terms")
# Removing a name that is not currently registered is a no-op.
client.remove_file_resource(name="already_gone")