doc_delete
Remove a document from the Pickaxe platform to delete it from all connected AI agents, ensuring clean knowledge base management.
Instructions
Delete a document from Pickaxe. This removes it from all connected agents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| documentId | Yes | The document ID to delete |
Implementation Reference
- src/index.ts:517-520 (handler)Handler logic for the 'doc_delete' tool within the executeTool function's switch statement. It performs a DELETE request to the Pickaxe API to delete the document by its ID.case "doc_delete": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "DELETE", undefined, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:246-256 (schema)Input schema definition for the 'doc_delete' tool, specifying required 'documentId' and optional 'studio' parameters.inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to delete", }, }, required: ["documentId"], },
- src/index.ts:243-257 (registration)Registration of the 'doc_delete' tool in the tools array, which is returned by the list tools handler and used for MCP tool discovery.{ name: "doc_delete", description: "Delete a document from Pickaxe. This removes it from all connected agents.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to delete", }, }, required: ["documentId"], }, },