---
title: "Delete Metadata Field"
method: DELETE
path: "/datasets/{dataset_id}/metadata/{metadata_id}"
tags: ["Metadata"]
---

# Delete Metadata Field

`DELETE /datasets/{dataset_id}/metadata/{metadata_id}`

Permanently delete a custom metadata field. Documents that used the field lose their values for it.

## Path parameters

- `dataset_id` string, uuid, required
- `metadata_id` string, uuid, required

## Response `204`

Success.

## Other responses

- `403` — - `forbidden` : Dataset api access is not enabled. - `forbidden` : Sorry, you have reached the knowledge base request rate limit of your subscription.
- `404` — `not_found` : Dataset not found.

---

[API](https://skmtc.net/langgenius/apis/dify-service-api.md) · [All operations](https://skmtc.net/langgenius/apis/dify-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langgenius/dify-service-api/revisions/e49b3db72bad/schema)
