diff --git a/lib/Core/Service/LayoutResolverService.php b/lib/Core/Service/LayoutResolverService.php
index <HASH>..<HASH> 100644
--- a/lib/Core/Service/LayoutResolverService.php
+++ b/lib/Core/Service/LayoutResolverService.php
@@ -1173,7 +1173,9 @@ final class LayoutResolverService implements APILayoutResolverService
             throw new BadStateException('condition', 'Only draft conditions can be deleted.');
         }
 
-        $persistenceCondition = $this->layoutResolverHandler->loadRuleCondition($condition->getId(), Value::STATUS_DRAFT);
+        $persistenceCondition = $condition instanceof RuleCondition ?
+            $this->layoutResolverHandler->loadRuleCondition($condition->getId(), Value::STATUS_DRAFT) :
+            $this->layoutResolverHandler->loadRuleGroupCondition($condition->getId(), Value::STATUS_DRAFT);
 
         $this->transaction(
             function () use ($persistenceCondition): void {
Allow deleting rule group conditions through API