added 'delete app' function