Add soft deletion to app versions (bug 800087)