implemented auto app deletion