none
How to clear App-V 5 client cache ?

    Question

  • Hi all,

    I did not find any way to clear the App-V 5.0 RTM client cache.

    I know about the different ways to do it with 4.x but none of them seems to apply to the 5.0 version.

    Thanks for any help

    Lionel

    Thursday, November 29, 2012 9:58 AM

Answers

  • Or if really anal...

    $vs = Get-AppvVirtualProcess

    foreach ($vp in $vs) { stop-appvclientpackage $vp }

    Get-appvclientpackage -all | remove-appvclientpackage

    This will terminate the App-V virtual processes without warning to prevent pending. If ultra anal, you also have to cover the connection groups.


    Tim Mangan MVP for App-V and Citrix CTP Author of AppV books: "PowerShell with App-V 5 (5.1 Edition)", "The Client Book (4.x)" and "OSD Reference Book" (http://www.tmurgent.com/Books )

    Wednesday, December 9, 2015 2:17 AM
    Moderator

All replies

  • You don't clear the cache, you remove each application using remove-appvclientpackage: How to remove a cached copy of an unpublished package in Microsoft App-V v5


    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually answer your question). This can be beneficial to other community members reading the thread.


    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.

    Twitter: @stealthpuppy | Blog: stealthpuppy.com | The Definitive Guide to Delivering Microsoft Office with App-V

    Thursday, November 29, 2012 10:37 AM
    Moderator
  • Hi,

    I did that but the folders and registry related to the removed applications are still there. Yes, the Powershell command says that all packages have been removed but I can see that all folders and registry key are staying, even after a reboot.

    Thanks,

    Lionel

    Thursday, November 29, 2012 10:45 AM
  • What was formerly often referred to as the "Cache" is more accurately called the package store in v5. There is support for the legacy App-V 4.x cache, but the file system assets for App-V 5 are more tightly integrated into the OS. Can you share your Powershell Workflow?


    Steve Thomas, Senior Consultant, Microsoft

    App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat

    http://blogs.technet.com/gladiatormsft/
    The App-V Team blog: http://blogs.technet.com/appv/
    The MED-V Team Blog: http://blogs.technet.com/medv
    The SCVMM Team blog: http://blogs.technet.com/scvmm/

    “This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”

    Friday, November 30, 2012 4:43 PM
  • Thanks for the clarification.

    I just list all packages using the Get-AppvClientPackage cmdlet and then run the Remove-AppVClientPackage –Name PackageName cmdlet for each package.

    Thanks,

    Lionel

    Tuesday, December 4, 2012 3:01 PM
  • Hello,

    Here we have exact the same problem, now i tried the solutions mentioned.

    But it simply does not wanna delete the package, this cause when i do:

    Get-AppVClientApplications - All

    The result is the following:

    • ApplicationID
    • Name
    • Version
    • TargetPath
    • EnabledForUser
    • EnabledGlobally

    No Package ID mentioned and therefor when using:

    Remove-AppVClientPackage

    it can not run since that one needs a package ID.

    Logical thing that does not work either is the combination of both. Like mentioned under the above link.

    I can lookup the PackageID's from the App-V console for an appllication, but this is no option when you wanna remove all those packages from a pc. Cause then you will be busy forever.

    Any other ideas?


    Wednesday, August 7, 2013 2:56 PM
  • So, it seems that a lot may be tied to how the applications were published. Removing a user-published package will purge out the user-mode VFS as that is by design. If you are targeting machines and are removing the package, you may still find lingering directories and registry keys remaining from the base or "gold" package store. Do you have anything else besides this?

    Steve Thomas, Senior Consultant, Microsoft

    App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat

    http://blogs.technet.com/gladiatormsft/
    The App-V Team blog: http://blogs.technet.com/appv/
    The MED-V Team Blog: http://blogs.technet.com/medv
    The SCVMM Team blog: http://blogs.technet.com/scvmm/

    “This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”

    Wednesday, August 7, 2013 3:07 PM
  • We deploy app-v's here user based (Active Directory groups filles with users)

    And I wanna remove the app-v programdata for userA

    I must start powershell as Administrator lets call this AdminA

    Wednesday, August 7, 2013 3:17 PM
  • Then it is working as designed. Unpublishing will only be for the user's assets. The Base package in %PROGRAMDATA% would have to be removed by an administrator. Also bear in mind you can pipe PowerShell commands (i.e. Get-AppVClientPackage -name <NAME> | Unpublish-AppVClientPackage) to optimize things.


    Steve Thomas, Senior Consultant, Microsoft

    App-V/MED-V/SCVMM/Server App-V/MDOP/AppCompat

    http://blogs.technet.com/gladiatormsft/
    The App-V Team blog: http://blogs.technet.com/appv/
    The MED-V Team Blog: http://blogs.technet.com/medv
    The SCVMM Team blog: http://blogs.technet.com/scvmm/

    “This posting is provided "AS IS" with no warranties, and confers no rights. User assumes all risks.”

    Wednesday, August 7, 2013 3:44 PM
  • The applications are not published anymore. So the last comment from Steve is irrelevant.

    I just wanna get rid of the data in ProgramData wich it won't let me remove

    Thursday, August 8, 2013 7:25 AM
  • Hmmm.

    1 day further when i try exact the same commands as yesterday it does seem to work.

    For some odd reason now it does come back with an PackageID in the GET command.

    Could someone maybe explain why yesterday it gave no PackageID in return and therefor i could not remove the programdata, and now it does give a PackageID with the same commands.

    Thursday, August 8, 2013 7:37 AM
  • Hello,

    I would review the debug-logs for further investigation - it will most likely offer the best chance to dive into that.


    Nicke Källén | The Knack| Twitter: @Znackattack

    Wednesday, August 14, 2013 10:53 AM
  • Get-AppvClientPackage -All | Remove-AppVClientPackage
    Friday, November 13, 2015 1:43 PM
  • Or if really anal...

    $vs = Get-AppvVirtualProcess

    foreach ($vp in $vs) { stop-appvclientpackage $vp }

    Get-appvclientpackage -all | remove-appvclientpackage

    This will terminate the App-V virtual processes without warning to prevent pending. If ultra anal, you also have to cover the connection groups.


    Tim Mangan MVP for App-V and Citrix CTP Author of AppV books: "PowerShell with App-V 5 (5.1 Edition)", "The Client Book (4.x)" and "OSD Reference Book" (http://www.tmurgent.com/Books )

    Wednesday, December 9, 2015 2:17 AM
    Moderator