CORE-4096 CORE-4886 Added App deleted flag.