mesh faces

Is there a modifier to get rid of all faces inside a mesh?Example like when you boolean and use union on two meshes.They will combine into one joined mesh with faces overlapping.

Not a modifier, but you can hit delete and select “only faces”.

I just found out remesh does that.That would be great to make a videogame character out of a sculpt you made in blender.