class AAIDeleteTasks {

    public void deleteInstanceGroupVnf(BuildingBlockExecution execution) {
        try {
            InstanceGroup instanceGroup = extractPojosForBB.extractByKey(execution, ResourceKey.INSTANCE_GROUP_ID);
            aaiInstanceGroupResources.deleteInstanceGroup(instanceGroup);
        } catch (Exception ex) {
            logger.error("Exception occurred in AAIDeleteTasks deleteInstanceGroupVnf process", ex);
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}