only remove static entries when no dependent VMs are left