Automatically clean up unpublished packages on the App-V client
Applies to: Windows 10, version 1703
If you wanted to free up additional storage space in previous versions of App-V, you would have had to manually remove your unpublished packages from your client devices. Windows 10, version 1703 introduces the ability to use PowerShell or Group Policy settings to automatically clean up your unpublished packages after restarting your device.
Clean up with PowerShell cmdlets
You can enter PowerShell cmdlets to turn on the AutoCleanupEnabled setting, which will automatically clean up your unpublished App-V packages from your App-V client devices.
Turn on the AutoCleanupEnabled option
Open PowerShell as an admin and enter the following cmdlet to turn on the automatic package cleanup functionality:
Set-AppvClientConfiguration -AutoCleanupEnabled 1
After running the cmdlet, you should see the following info on the PowerShell screen:
Name Value SetbyGroupPolicy AutoCleanupEnabled 1 False
Run the following cmdlet to check if the configuration has the cleanup setting turned on.
If the AutoCleanupEnabled option shows a value of 1 in the configuration list, that means the setting is turned on.
Clean up with Group Policy settings
Using Group Policy, you can turn on the Enable automatic cleanup of unused App-V packages setting to automatically clean up your unpublished App-V packages from your App-V client devices.
Turn on the Enable automatic cleanup of unused App-V packages setting
Open your Group Policy editor and select the Administrative Templates\System\App-V\PackageManagement\Enable automatic cleanup of unused App-V packages setting.
Select Enabled, then select OK.
After your Group Policy updates and you reset the client, the setting will clean up any unpublished App-V packages on the App-V client.
Send feedback about: