**I can not understand why the texture applied to "TOTO" is purged.
If I go through "purge_unused" the texture "TOTO" is not deleted.
So I'll get around the problem with another method.
To delete a list of materials, I can write this:
mat_names = ['TOTO','LOLA','CUBE']
materials = Sketchup.active_model.materials
mat_names.each{|mnj| materials.remove(mnj)}
Can we do the same with "purge_unused", so that the unused materials of the list are deleted?
Thank you for your help.**