yuque_delete_repo
Delete a Yuque repository by specifying its ID or namespace to remove unwanted knowledge base content from the platform.
Instructions
Delete a repository.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "yuque_delete_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. |
Implementation Reference
- src/yuque-client.js:261-266 (handler)The actual implementation of the deleteRepo method which makes the API call.
async deleteRepo(refs = {}) { const repoRef = await this.resolveRepoIdentifier(refs); return this.request(`/repos/${repoRef}`, { method: "DELETE" }); } - src/tools.js:302-309 (registration)The tool definition registration for "yuque_delete_repo".
{ name: "yuque_delete_repo", description: "Delete a repository.", inputSchema: { type: "object", properties: repoRefSchema() } }, - src/tools.js:454-454 (handler)The tool handler function mapping for "yuque_delete_repo".
yuque_delete_repo: async (args, client) => jsonText(await client.deleteRepo(args)),