delete_project
Remove a project from a specified workspace using its unique ID. Streamline project management and maintain organization by eliminating outdated or unnecessary projects.
Instructions
Delete a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID | |
| workspaceId | Yes | Workspace ID |
Implementation Reference
- src/index.ts:1116-1131 (handler)The core handler function that executes the deletion by making a DELETE request to the Clockify API.private async deleteProject(workspaceId: string, projectId: string) { await this.makeRequest( `/workspaces/${workspaceId}/projects/${projectId}`, "DELETE" ); return { content: [ { type: "text", text: `Project ${projectId} deleted successfully!`, }, ], isError: false, }; }
- src/index.ts:460-471 (registration)Tool registration in the list of tools provided by ListToolsRequestSchema, including name, description, and input schema.{ name: "delete_project", description: "Delete a project", inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, projectId: { type: "string", description: "Project ID" }, }, required: ["workspaceId", "projectId"], }, },
- src/index.ts:763-765 (registration)Dispatch logic in CallToolRequestSchema handler that routes calls to the deleteProject method after input validation.case "delete_project": if (!args?.workspaceId || !args?.projectId) throw new McpError(ErrorCode.InvalidParams, 'workspaceId and projectId are required'); return await this.deleteProject(args.workspaceId as string, args.projectId as string);
- src/index.ts:463-470 (schema)Input schema definition for the delete_project tool, specifying required workspaceId and projectId parameters.inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, projectId: { type: "string", description: "Project ID" }, }, required: ["workspaceId", "projectId"], },