class NamingServiceDeleteTasks {

    public void deleteInstanceGroupName(BuildingBlockExecution execution) throws BBObjectNotFoundException {
        InstanceGroup instanceGroup = extractPojosForBB.extractByKey(execution, ResourceKey.INSTANCE_GROUP_ID);

        try {
            namingServiceResources.deleteInstanceGroupName(instanceGroup);
        } catch (Exception ex) {
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}