src/Public/Delete-OrgTraceFlags.ps1
function Delete-OrgTraceFlags { [CmdletBinding()] Param( [Parameter(Mandatory = $false)][Alias("o")]$orgAlias ) sf data query --query "SELECT Id FROM TraceFlag" -o $orgAlias --use-tooling-api -r csv | ConvertFrom-Csv | ForEach-Object { sf data delete record --use-tooling-api -o $orgAlias --sobject TraceFlag --record-id $_.Id } } |