findOrFail($node); } if ($node->servers()->count() > 0) { throw new HasActiveServersException($this->translator->get('exceptions.node.servers_attached')); } return $this->repository->delete($node); } }