Move delete app logic into galaxy