deleteApplication static method
Implementation
static Future<bool> deleteApplication(ApplicationModel app) async {
bool ok = true;
// delete app from the database
ok = await app.delete();
// add to the list
if (_apps.contains(app)) _apps.remove(app);
// re-sequence the apps
await _resequenceApps();
// dispose of the app
app.dispose();
return ok;
}