Delete unneeded classes.