DeleteCodeScanningAnalysis
Deletes an analysis by Id, or deletes the matched set of analyses in reverse chronological order. Deleting the final remaining analysis in a set requires explicitly confirming the deletion because it removes all associated historical alert data.
Sample
EXECUTE [DeleteCodeScanningAnalysis] Repository='test', Id='1234', ConfirmDeleteLast=true
EXECUTE [DeleteCodeScanningAnalysis] Repository='test', Ref='456', ToolName='789', Category='423', ConfirmDeleteLast=true
Input
| Name | Type | Required | Description |
| OwnerLogin | String | False | The login field of a GitHub entity. |
| Repository | String | True | The name of the repository. |
| Id | Int | False | The ID of the analysis to delete. If specified, all filtering inputs are ignored. |
| Ref | String | False | Git reference to filter analyses. |
| ToolGuid | String | False | Tool GUID to filter analyses. If specified, ToolName is ignored. |
| ToolName | String | False | Tool name to filter analyses. |
| Category | String | False | Analysis category to filter. |
| ConfirmDeleteLast | Boolean | False | Confirms and allows deletion if the specified analysis is the last in a set. |
Result Set Columns
| Name | Type | Description |
| NextId | String | Id of the next deletable analysis, if any remains. |
| Success | Boolean | Indicates whether or not the operation executed successfully. |
| Details | String | Any extra details on the operation's execution. |