Remove uneeded models.