Skip to main content
Glama

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
NameRequiredDescriptionDefault
projectIdYesProject ID
workspaceIdYesWorkspace ID

Implementation Reference

  • 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);
  • 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"], },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ratheesh-aot/clockify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server