delete_project
Remove a project by moving it to trash in Zoho Projects. Use this tool to delete projects when they are no longer needed.
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)The core handler function for the 'delete_project' tool. It makes a POST request to the Zoho Projects API trash endpoint to move the specified project to trash and returns a formatted success response with the API data.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:272-282 (schema)The input schema and metadata for the 'delete_project' tool, registered in the list of tools. Defines 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-570 (registration)The switch case in the CallToolRequestSchema handler that routes 'delete_project' tool calls to the deleteProject method.case "delete_project": return await this.deleteProject(params.project_id);
- src/http-server.ts:693-706 (handler)Identical handler implementation in the HTTP server variant.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)Identical schema definition in the HTTP server variant.name: "delete_project", description: "Delete a project (moves to trash)", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, }, required: ["project_id"], }, },