From 63984e693ca9014fccbf699d9fb2251b8def38ed Mon Sep 17 00:00:00 2001 From: bctiemann Date: Tue, 14 Jul 2026 22:13:05 -0400 Subject: [PATCH] Update netbox/netbox/api/viewsets/mixins.py Co-authored-by: Jeremy Stretch --- netbox/netbox/api/viewsets/mixins.py | 1 - 1 file changed, 1 deletion(-) diff --git a/netbox/netbox/api/viewsets/mixins.py b/netbox/netbox/api/viewsets/mixins.py index 85b140b82..0f36f2b34 100644 --- a/netbox/netbox/api/viewsets/mixins.py +++ b/netbox/netbox/api/viewsets/mixins.py @@ -378,7 +378,6 @@ class BulkDestroyModelMixin: protected = list( e.protected_objects if isinstance(e, ProtectedError) else e.restricted_objects ) - n = len(protected) # Report only the count, not names or PKs, to keep each per-object error # entry small in a batch response. Note: the single-object delete endpoint # (NetBoxModelViewSet.dispatch()) does include names and PKs of dependent