Datasmith and cleaning the project from unnecessary Mesh

I am currently working with a large complex and have encountered this problem.
I have imported Revit->3dsMax(datasmith)->UE5. A lot of unique meshes have been loaded. For example, StaticMesh1, StaticMesh2 and StaticMesh3 are identical models and StaticMeshActor1, StaticMeshActor2 and StaticMeshActor3 have been created respectively. I have replaced the Static Mesh with a new one, but when I try to delete StaticMesh1 from the project, I am warned that this Mesh is used in the project. I really want to clean the project. Project Cleaner and Migrate do not help. The number of Meshes to delete from the project is more than 10,000. This cannot be done manually
Have you encountered this problem? How can this be solved?

Hello Swolf74. Yeah, this is a really common (and frustrating) issue when importing large scenes via Revit → 3ds Max → Datasmith. It creates tons of unique static meshes even if they’re visually identical.

Unfortunately, Unreal sees them as completely separate assets, so deleting or replacing them globally becomes tricky.

Here are some things that might help — though I admit, it’s still a lot of work:

Try to identify duplicated geometry and replace them in the level manually or via Blueprint tools (like using Get All Actors of Class to swap them with a single master mesh).
You can mark identical meshes and try using “Replace References” in the Content Browser — but with 10k+ meshes, this won’t scale easily.
Some users export a cleaned-up version from 3ds Max (merging identical meshes beforehand), then reimport over the same Datasmith file — but I know that’s a big step if your level is already populated.

Even tools like Project Cleaner won’t help until all references are removed manually or with scripts.

So yeah… it’s not a one-click fix (yet), but small automation steps + good asset naming/tagging can go a long way.

I found something in the forum that can help you.

1 Like

You can try this way to remove your unused assets, but first i would recommend copying your entire Project and try this in that copied project so even if you delete anything which you didn’t want to, then you could recover it from the original file.

Go to the filters tab in the Content Browser and the scroll down to other filter in there you can find 2 options, one is not used in any level and other is not used in any assets.

If you want to just clear everything that is not used in your project i would go for the option of not used in any level, after that just select all the assets that are shown and simply delete, do remember that some assets might be influencing some other assets, like any material or mesh in some blueprint that is used in the level. It’s not Perfect but I use it quite often whenever there is too much trash in my Projects. You can also go from folder to folder as well while enabling this filter so it would be more convenient as to what to delete and what not to.