Cleans telemetry and logs from (#8801)

Running the cleanup post-tests and software inventory, as these generate more logs and more telemetry
This commit is contained in:
Jesse Houwing
2023-11-21 20:16:32 +01:00
committed by GitHub
parent eb6e81b8f2
commit a8f17e0207

View File

@@ -20,7 +20,10 @@ Write-Host "Clean up various directories"
"$env:SystemRoot\winsxs\manifestcache",
"$env:SystemRoot\Temp",
"$env:SystemDrive\Users\$env:INSTALL_USER\AppData\Local\Temp",
"$env:TEMP"
"$env:TEMP",
"$env:AZURE_CONFIG_DIR\logs",
"$env:AZURE_CONFIG_DIR\commands",
"$env:AZURE_CONFIG_DIR\telemetry"
) | ForEach-Object {
if (Test-Path $_) {
Write-Host "Removing $_"