The project I'm working on in Blender has objects that aren't desired from the mesh rips I've pulled from PPSSPP using a tool called NinjaRipper. I'm looking to put together a script that targets meshes with a specific texture(and any iterations like "Texture.png.01") and have the objects deleted from all collections it is linked to. I have been looking at the python api documentation and found bpy.ops.object.delete(use_global=False, confirm=True)
which seems to be the end goal of the script but I'm unsure how to go about targeting objects sharing the same material/texture and their iterations, selecting them, and deleting them.