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