delete_worklog
Remove a specific worklog from an issue within a project using the Plane MCP Server. Specify the project_id, issue_id, and worklog_id to complete the deletion.
Instructions
Delete a worklog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_id | Yes | The uuid identifier of the issue containing the worklog | |
| project_id | Yes | The uuid identifier of the project containing the issue | |
| worklog_id | Yes | The uuid identifier of the worklog to delete |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"issue_id": {
"description": "The uuid identifier of the issue containing the worklog",
"type": "string"
},
"project_id": {
"description": "The uuid identifier of the project containing the issue",
"type": "string"
},
"worklog_id": {
"description": "The uuid identifier of the worklog to delete",
"type": "string"
}
},
"required": [
"project_id",
"issue_id",
"worklog_id"
],
"type": "object"
}
Implementation Reference
- src/tools/work-log.ts:117-130 (handler)Handler function that performs the DELETE request to the Plane API to delete the specified worklog.async ({ project_id, issue_id, worklog_id }) => { await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/worklogs/${worklog_id}/` ); return { content: [ { type: "text", text: "Worklog deleted successfully", }, ], }; }
- src/tools/work-log.ts:112-116 (schema)Input schema using Zod for the delete_worklog tool parameters.{ project_id: z.string().describe("The uuid identifier of the project containing the issue"), issue_id: z.string().describe("The uuid identifier of the issue containing the worklog"), worklog_id: z.string().describe("The uuid identifier of the worklog to delete"), },
- src/tools/work-log.ts:109-131 (registration)Direct registration of the delete_worklog tool on the MCP server.server.tool( "delete_worklog", "Delete a worklog", { project_id: z.string().describe("The uuid identifier of the project containing the issue"), issue_id: z.string().describe("The uuid identifier of the issue containing the worklog"), worklog_id: z.string().describe("The uuid identifier of the worklog to delete"), }, async ({ project_id, issue_id, worklog_id }) => { await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/worklogs/${worklog_id}/` ); return { content: [ { type: "text", text: "Worklog deleted successfully", }, ], }; } );