Knowledge Bases
Delete Knowledge Base
Permanently deletes a knowledge base, all of its documents, and any API key scoped only to it. Keys that also cover other knowledge bases keep working for those.
delete/datasets/{dataset_id}
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/datasets/{dataset_id}
- AuthHTTP 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.
Response
Knowledge base deleted successfully.
Changes
No recorded changes to this operation across all 17 revisions of this API.