Automatically cleanup unpublished packages on the App-V client

Applies to

  • Windows 10, version 1703

Previous versions of App-V have required you to manually remove your unpublished packages from your client devices, to free up additional storage space. Windows 10, version 1703 introduces the ability to use PowerShell or Group Policy settings to automatically cleanup your unpublished packages after a device restart.

Cleanup by using PowerShell commands

Using PowerShell, you can turn on the AutoCleanupEnabled setting to automatically cleanup your unpublished App-V packages from your App-V client devices.

To turn on the AutoCleanupEnabled option

  1. Open PowerShell as an admin and run the following command to turn on the automatic package cleanup functionality:

    Set-AppvClientConfiguration -AutoCleanupEnabled 1
    

    The command runs and you should see the following info on the PowerShell screen:

    Name Value SetbyGroupPolicy
    AutoCleanupEnabled 1 False
  2. Run the following command to make sure the configuration is ready to automatically cleanup your packages.

    Get-AppvClientConfiguration
    

    You should see the AutoCleanupEnabled option turned on (shows a value of "1") in the configuration list.

Cleanup by using Group Policy settings

Using Group Policy, you can turn on the Enable automatic cleanup of unused appv packages setting to automatically cleanup your unpublished App-V packages from your App-V client devices.

To turn on the Enable automatic cleanup of unused appv packages setting

  1. Open your Group Policy editor and double-click the Administrative Templates\System\App-V\PackageManagement\Enable automatic cleanup of unused appv packages setting.

  2. Click Enabled, and then click OK.

    After your Group Policy updates, the setting is turned on and will cleanup any unpublished App-V packages on the App-V Client after restarting.

Have a suggestion for App-V?

Add or vote on suggestions on the Application Virtualization feedback site.
For App-V issues, use the App-V TechNet Forum.