diff --git a/include/class_objects.inc b/include/class_objects.inc
index fb71279636852ea403bb48403ffa0ebea2a0218d..988be13000ea42fa02c8dbef6b833fb18b2568fb 100644
--- a/include/class_objects.inc
+++ b/include/class_objects.inc
@@ -400,10 +400,10 @@ class objects
     return static::open('new', $type);
   }
 
-  static function delete (string $dn, string $type, bool $checkAcl = TRUE)
+  static function delete (string $dn, string $type, bool $checkAcl = TRUE): array
   {
     $tabObject = static::open($dn, $type);
-    $tabObject->delete($checkAcl);
+    return $tabObject->delete($checkAcl);
   }
 
   static function createTemplate (string $type): simpleTabs