Create an application add a variant and some installations then remove the application the installations are still in the database. They should have been removed when the application was removed.