Removes digit unused classes