Function: SQL Database Remove

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 Remove an SQL Database

Public Function: SQLDatabaseRemove

public SQLDatabaseRemove(objSQLDatabase: SQLDatabase): SQLDatabase {
    try {
        objSQLDatabase = SQLDatabaseManager.removeDatabase(objSQLDatabase);

        this.objLogger.info(`SQLDatabase Remove of: ${objSQLDatabase} Successfull.`);
    }
    catch (objException) {
        this.objLogger.info(`SQLDatabase Remove of: ${objSQLDatabase} Failed.`);

        return objSQLDatabase;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like