delete_task
Remove tasks from Zoho Projects by specifying project and task IDs to manage project workflows and maintain organized task lists.
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)The handler function that implements the core logic of the delete_task tool by sending a DELETE request to the Zoho Projects API endpoint.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:370-377 (schema)Input schema for the delete_task tool defining required project_id and task_id parameters.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:368-378 (registration)Tool registration entry in the list_tools response including name, description, and schema.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)Dispatch case in the call_tool request handler that routes to the deleteTask method.case "delete_task": return await this.deleteTask(params.project_id, params.task_id);