added function and framework for deleting foreign app data