delete_module
Remove a module from a defined project by specifying its unique project and module IDs, enabling efficient management of project components within the Plane MCP Server.
Instructions
Delete a module
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_id | Yes | The uuid identifier of the module to delete | |
| project_id | Yes | The uuid identifier of the project containing the module |
Implementation Reference
- src/tools/modules.ts:111-124 (handler)The handler function that executes the delete_module tool by sending a DELETE request to the Plane API module endpoint and returning the response as text.async ({ project_id, module_id }) => { const response = await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- src/tools/modules.ts:107-110 (schema)Zod input schema defining the required project_id and module_id parameters for the delete_module tool.{ project_id: z.string().describe("The uuid identifier of the project containing the module"), module_id: z.string().describe("The uuid identifier of the module to delete"), },
- src/tools/modules.ts:104-125 (registration)Direct registration of the delete_module tool on the MCP server, including name, description, schema, and handler.server.tool( "delete_module", "Delete a module", { project_id: z.string().describe("The uuid identifier of the project containing the module"), module_id: z.string().describe("The uuid identifier of the module to delete"), }, async ({ project_id, module_id }) => { const response = await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
- src/tools/index.ts:18-18 (registration)Registration of module tools (including delete_module) by calling registerModuleTools on the server.registerModuleTools(server);
- src/server.ts:15-15 (registration)Top-level registration of all tools, which chains to the registration of delete_module.registerTools(server);