跳到主要内容
版本:v3.0.x

removeFileResource()

This operation removes a file resource from Milvus metadata.

JavaScript
await milvusClient.removeFileResource(data)

Request Syntax​

JavaScript
await milvusClient.removeFileResource({
name: string,
timeout?: number
})

PARAMETERS:

  • name (string) -

    [REQUIRED]

    The name of the file resource to remove.

  • timeout (number) -

    The timeout duration in milliseconds for this operation.

RETURNS:

Promise<ResStatus>

EXCEPTIONS:

  • MilvusError

    This exception will be raised when any error occurs during this operation.

Example​

JavaScript
import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
address: 'localhost:19530',
token: 'root:Milvus',
});

const resStatus = await milvusClient.removeFileResource({
name: 'embedding_model',
});