I use purge to ensure materials aren’t crrying over when they’re not needed. Could the same be done with textures? (as a command line option)
I am constantly finding when I export objects (Export Selected as 3DM) from ‘documents’ that contain textures, these carry over even if I don’t export items that used those textures mentioned.