delete_task
Remove tasks from Zoho Projects by specifying project and task IDs to maintain organized project workflows and eliminate completed or unnecessary items.
Instructions
Delete a task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| task_id | Yes | Task ID |
Implementation Reference
- src/index.ts:763-776 (handler)Executes DELETE request to Zoho Projects API to delete the specified task in a project, returns formatted success response.private async deleteTask(projectId: string, taskId: string) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${projectId}/tasks/${taskId}`, "DELETE" ); return { content: [ { type: "text", text: `Task deleted successfully:\n${JSON.stringify(data, null, 2)}`, }, ], }; }
- src/index.ts:368-378 (schema)Defines the input schema for the delete_task tool, requiring project_id and task_id as strings.name: "delete_task", description: "Delete a task", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, task_id: { type: "string", description: "Task ID" }, }, required: ["project_id", "task_id"], }, },
- src/index.ts:580-581 (registration)Registers the tool handler dispatch in the CallToolRequestSchema switch statement.case "delete_task": return await this.deleteTask(params.project_id, params.task_id);
- src/http-server.ts:766-779 (handler)Identical handler implementation in the HTTP server variant.private async deleteTask(projectId: string, taskId: string) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${projectId}/tasks/${taskId}`, "DELETE" ); return { content: [ { type: "text", text: `Task deleted successfully:\n${JSON.stringify(data, null, 2)}`, }, ], }; }
- src/http-server.ts:371-381 (schema)Identical schema definition in the HTTP server variant.name: "delete_task", description: "Delete a task", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, task_id: { type: "string", description: "Task ID" }, }, required: ["project_id", "task_id"], }, },