@bobsilverberg and @teodosia I had a look into this. Problem with that is that this code operates in the Homescreen app and it's not easy to switch into it from the data_layer class.
I think we should just hold off this snippet until there is a Homescreen app object or alternatively try and see if there is a bookmark uninstall javascript that we can work into the Apps class.

Main problem here is that I have run out of time as I have promised some work on Marketplace today.