protected function removeIds(array $machineIds): void
    {
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(Machine::class, 'm')
                     ->andWhere('m.id IN (:machineIds)')
                     ->setParameter('machineIds', array_values($machineIds));

        $queryBuilder->getQuery()->execute();
    }