yuque_delete_doc
Remove documents from Yuque knowledge base by specifying document ID, repository ID, or namespace to manage content hierarchies and maintain organized repositories.
Instructions
Delete a doc by ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Yuque doc ID. | |
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. |
Implementation Reference
- src/tools.js:447-450 (handler)The handler function for the yuque_delete_doc tool, which executes the delete operation via the client.
yuque_delete_doc: async (args, client) => { await client.deleteDoc(args.docId, args); return jsonText({ ok: true, docId: args.docId }); }, - src/tools.js:247-255 (schema)The schema registration for the yuque_delete_doc tool, defining its input parameters and description.
name: "yuque_delete_doc", description: "Delete a doc by ID.", inputSchema: { type: "object", properties: { docId: schemaProperty("number", "Yuque doc ID."), ...repoRefSchema() }, required: ["docId"]