Power BI Connector for GitHub

Build 25.0.9539

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 [Repository_MyRepository].[DeleteCodeScanningAnalysis] Id='1234', ConfirmDeleteLast=true
EXECUTE [Repository_MyRepository].[DeleteCodeScanningAnalysis] Ref='456', ToolName='789', Category='423', ConfirmDeleteLast=true

Input

Name Type Description
Id Int The ID of the analysis to delete. If specified, all filtering inputs are ignored.
Ref String Git reference to filter analyses.
ToolGuid String Tool GUID to filter analyses. If specified, ToolName is ignored.
ToolName String Tool name to filter analyses.
Category String Analysis category to filter.
ConfirmDeleteLast Boolean 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.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539