upgrade-scripts/pre-upgrade/common/deletekeycloakclient.groovy (6 lines of code) (raw):

void call() { ["admin-portal", "officer-portal", "citizen-portal"].each { it -> sh "oc delete keycloakclient $it -n $NAMESPACE || true" } } return this;