delete_project
Remove a project from Zoho Projects by moving it to trash using the project ID. This action helps clean up completed or unnecessary projects from your workspace.
Instructions
Delete a project (moves to trash)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID |
Implementation Reference
- src/index.ts:690-703 (handler)Core handler function that executes the delete_project tool by making a POST request to the Zoho API endpoint to move the specified project to trash and returns a success message with the API response.private async deleteProject(projectId: string) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${projectId}/trash`, "POST" ); return { content: [ { type: "text", text: `Project moved to trash successfully:\n${JSON.stringify(data, null, 2)}`, }, ], }; }
- src/index.ts:273-282 (schema)Input schema for the delete_project tool, defining the required project_id parameter.name: "delete_project", description: "Delete a project (moves to trash)", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, }, required: ["project_id"], }, },
- src/index.ts:568-569 (registration)Registration of the delete_project tool in the switch statement within the CallToolRequestSchema handler, dispatching to the deleteProject method.case "delete_project": return await this.deleteProject(params.project_id);
- src/http-server.ts:693-706 (handler)Core handler function that executes the delete_project tool by making a POST request to the Zoho API endpoint to move the specified project to trash and returns a success message with the API response.private async deleteProject(projectId: string) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${projectId}/trash`, "POST" ); return { content: [ { type: "text", text: `Project moved to trash successfully:\n${JSON.stringify(data, null, 2)}`, }, ], }; }
- src/http-server.ts:276-285 (schema)Input schema for the delete_project tool, defining the required project_id parameter.name: "delete_project", description: "Delete a project (moves to trash)", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, }, required: ["project_id"], }, },