Delete type attribute when enum attribute is present