delete_project
Remove a project from the SD Elements MCP Server by specifying its project ID, ensuring clean and efficient project management within the security development lifecycle platform.
Instructions
Delete a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID of the project to delete |
Implementation Reference
- The delete_project tool handler, registered with @mcp.tool(). Calls the API client to delete the project by ID and returns JSON result.@mcp.tool() async def delete_project(ctx: Context, project_id: int) -> str: """Delete a project. Use when user says 'delete', 'remove', 'archive', or wants to permanently remove a project. Do NOT use update_project for archiving.""" global api_client if api_client is None: api_client = init_api_client() result = api_client.delete_project(project_id) return json.dumps(result, indent=2)