# Drop function (legacy)

Milvus 3.0.6 rejects this legacy route. Use drop_function_field to remove the function and its output field.

SDK: `@zilliz/milvus2-sdk-node@3.0.10` · Tested with Milvus 3.0.6

Canonical documentation: https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/drop-function/

## Section links

- [cURL command](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/drop-function/#curl-command)
- [Default request](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/drop-function/#default-request)
- [Sample response](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/drop-function/#sample-response)
- [Request fields](https://milvus-io.github.io/milvus-sdk-node/rest-api/schema/drop-function/#request-fields)

`POST /v2/vectordb/collections/drop_function`

Replace `https://your-cluster.example.com` with your Milvus endpoint. Set `MILVUS_TOKEN` for authentication or omit the Authorization header on an unauthenticated cluster.

## cURL command

```bash
curl --request POST --url 'https://your-cluster.example.com/v2/vectordb/collections/drop_function' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "dbName": "default",
  "collectionName": "books",
  "FunctionName": "title_bm25"
}'
```

## Default request

```json
{
  "dbName": "default",
  "collectionName": "books",
  "FunctionName": "title_bm25"
}
```

## Sample response

```json
{
  "code": 1100,
  "message": "DropCollectionFunction RPC is no longer supported; drop a function via drop_function_field: invalid parameter"
}
```

## Request fields

- `dbName` string
  Database name. Operations on collections use default when omitted.
- `collectionName` string (required)
  Name of the collection.
- `FunctionName` string (required)
  Name of the collection function to remove.

For new SDK code, use [`HttpClient.dropFunctionField`](https://milvus-io.github.io/milvus-sdk-node/api-reference/http-client/#dropfunctionfield) to manage the function together with its output field and index.
