doc_delete
Remove documents from the Pickaxe platform to delete them from all connected AI agents and manage knowledge bases effectively.
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)The handler for the 'doc_delete' tool within the executeTool switch statement. It sends a DELETE HTTP request to the Pickaxe API endpoint `/studio/document/${documentId}` and returns the JSON-stringified response.case "doc_delete": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "DELETE", undefined, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:243-256 (schema)The schema definition for the 'doc_delete' tool, including its name, description, and input schema that requires a 'documentId' string and optionally accepts a 'studio' parameter.{ 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"], },
- src/index.ts:616-618 (registration)Registration of the tool list handler, which returns the 'tools' array containing the 'doc_delete' tool schema when ListToolsRequest is called.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });