APS specific file deletions
Till,
While I was looking through the APS packaging standard, I did see a file called "APP-LIST.xml". This file defines ALL the folders and files that belong the respective APS application.
My suggestion is in future versions, rather than wiping out everything in /web/ (except stats & errors folders) when a user deletes an APS application installed in the domain root /web/, instead delete ONLY the files and folders defined in that file (APP-LIST.xml).
Thanks, Joseph