delete_project
Remove a project permanently by its ID using a session ID with Taiga MCP Bridge. This action is irreversible and ensures automated project management cleanup.
Instructions
Deletes a project by its ID. This is irreversible.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| session_id | Yes |
Implementation Reference
- src/server.py:245-263 (handler)The main handler function for the 'delete_project' MCP tool. It authenticates the session, calls the Taiga API to delete the project by ID, and returns a success status or raises errors.@mcp.tool("delete_project", description="Deletes a project by its ID. This is irreversible.") def delete_project(session_id: str, project_id: int) -> Dict[str, Any]: """Deletes a project by ID.""" logger.warning( f"Executing delete_project ID {project_id} for session {session_id[:8]}...") taiga_client_wrapper = _get_authenticated_client(session_id) # Use wrapper variable name try: # Use pytaigaclient syntax: client.resource.delete(id=...) taiga_client_wrapper.api.projects.delete(id=project_id) logger.info(f"Project {project_id} deleted successfully.") return {"status": "deleted", "project_id": project_id} except TaigaException as e: logger.error( f"Taiga API error deleting project {project_id}: {e}", exc_info=False) raise e except Exception as e: logger.error( f"Unexpected error deleting project {project_id}: {e}", exc_info=True) raise RuntimeError(f"Server error deleting project: {e}")