Skip to content

Commit 6c6e2fb

Browse files
committed
Make sure labs are fully removed
1 parent fc239ab commit 6c6e2fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AutomatedLabCore/functions/Core/Remove-Lab.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
if (Test-Path "$($Script:data.LabPath)/$(Get-LabConfigurationItem -Name MachineFileName)") { Remove-Item -Path "$($Script:data.LabPath)/Machines.xml" -Force -Confirm:$false }
185185
if (Test-Path "$($Script:data.LabPath)/Unattended*.xml") { Remove-Item -Path "$($Script:data.LabPath)/Unattended*.xml" -Force -Confirm:$false }
186186
if (Test-Path "$($Script:data.LabPath)/armtemplate.json") { Remove-Item -Path "$($Script:data.LabPath)/armtemplate.json" -Force -Confirm:$false }
187+
if (Test-Path "$($Script:data.LabPath)/Network_$labName.xml") { Remove-Item -Path "$($Script:data.LabPath)/Network_$labName.xml" -Force -Confirm:$false }
187188
if (Test-Path "$($Script:data.LabPath)/ks*.cfg") { Remove-Item -Path "$($Script:data.LabPath)/ks*.cfg" -Force -Confirm:$false }
188189
if (Test-Path "$($Script:data.LabPath)/*.bash") { Remove-Item -Path "$($Script:data.LabPath)/*.bash" -Force -Confirm:$false }
189190
if (Test-Path "$($Script:data.LabPath)/autoinst*.xml") { Remove-Item -Path "$($Script:data.LabPath)/autoinst*.xml" -Force -Confirm:$false }

0 commit comments

Comments
 (0)