Metadata

Delete Metadata Field

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

delete/datasets/{dataset_id}/metadata/{metadata_id}

Request

  • Base URL
    https://api.dify.ai/v1
  • URL
    https://api.dify.ai/v1/datasets/{dataset_id}/metadata/{metadata_id}
  • Auth
    HTTP bearer

Path parameters

dataset_idstring uuid required

Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.

metadata_idstring uuid required

ID of the metadata field to delete. See List Metadata Fields.

Response

Success.

Changes

No recorded changes to this operation across all 17 revisions of this API.