I have a desktop bridge application that is packaged as an appx for the Microsoft Store. The application utilizes the WebView2 browser engine, which is part of OS and not part of the package. The Webview2 browser cache specific to this application is outside the appx installation location. The location is not virtualized to the package (because Webview2 cannot write there). I would like to remove this folder when the appx package is uninstalled. I am assuming there is something I need to add to my appxmanifest.xml to get this done, perhaps in the <Extensions> block. Also, my application is not developed in Visual Studio and I am creating my appxmanifest.xml file manually.
So the question is: Is it possible to perform a task (e.g. delete a folder) upon uninstall of an Appx Package, and how?