github_code_scanning_delete_analysis
Delete a code scanning analysis from a GitHub repository. Specify owner, repo, and analysis ID; use confirm_delete to allow removing the final analysis.
Instructions
Delete a code scanning analysis from a repository
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"analysis_id": "<analysis_id>"
},
"name": "github_code_scanning_delete_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | repo | |
| owner | Yes | owner | |
| analysis_id | Yes | analysis_id | |
| confirm_delete | No | Allow deletion if the specified analysis is the last in a set. If you attempt to delete the final analysis in a set without setting this parameter to `true`, you'll get a 400 response with the message: `Analysis is last of its type and deletion may result in the loss of historical alert data. Please specify confirm_delete.` |