Clean old restrictions on new app install

Refs #901
Merge pull request #908 from jpeg729/delete_uninstalled

Clean old restrictions on new app install