delete_project
Remove a project from Backlog by specifying its ID or key to manage your project workspace effectively.
Instructions
Deletes a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | The numeric ID of the project (e.g., 12345) | |
| projectKey | No | The key of the project (e.g., 'PROJECT') |
Implementation Reference
- src/tools/deleteProject.ts:41-51 (handler)The async handler function that resolves the project ID or key using resolveIdOrKey and calls backlog.deleteProject to delete the project.handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.deleteProject(result.value); },
- src/tools/deleteProject.ts:8-27 (schema)Zod schema definition for the delete_project tool input parameters: projectId (optional number) and projectKey (optional string).const deleteProjectSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_DELETE_PROJECT_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_DELETE_PROJECT_PROJECT_KEY', "The key of the project (e.g., 'PROJECT')" ) ), }));
- src/tools/tools.ts:85-85 (registration)Registration of the delete_project tool by calling deleteProjectTool factory and adding it to the 'project' toolset in allTools.deleteProjectTool(backlog, helper),