Function: SQL Table Delete Records

by Simon Sparks · 4 February 2026

To use this function add it to the class library file named OrchestratorPluginSQLService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorPluginSQLService.ts

Description: Orchestrator Function to Delete Records from an SQL Table

Public Function: SQLTableDeleteRecords

public SQLTableDeleteRecords(objSQLTable: SQLTable, arrSQLColumn: SQLColumn[], blnValidateRecordUniqueness: boolean = true): number {

    let intCount: number = objSQLTable.deleteRecords(arrSQLColumn, blnValidateRecordUniqueness);

    this.objLogger.info(`Deleted ${intCount.toString()} records from ${objSQLTable.name}.`);

    return intCount;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like