diff --git a/app/Models/Device.php b/app/Models/Device.php index 0695247e48db..42bc9c47add8 100644 --- a/app/Models/Device.php +++ b/app/Models/Device.php @@ -40,6 +40,7 @@ public static function boot() $device->ports()->delete(); $device->syslogs()->delete(); $device->eventlogs()->delete(); + $device->applications()->delete(); // handle device dependency updates $device->children->each->updateMaxDepth($device->device_id);