class FreeIpaDeletionService {

    public void delete(String environmentCrn, String accountId, boolean forced) {
        List<Stack> stacks = stackService.findAllByEnvironmentCrnAndAccountId(environmentCrn, accountId);
        if (stacks.isEmpty()) {
            throw new NotFoundException("No FreeIpa found in environment");
        }
        stacks.forEach(stack -> validateDeletion(stack, accountId));
        stacks.forEach(stack -> unscheduleAndTriggerTerminate(stack, forced));
    }

}