# Removing unnecessary geometry items from the Libray after updating Datasmith file

**URL:** <https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307>\
**Category:** Pipeline & Plugins\
**Tags:** Datasmith, unreal-engine\
**Created:** [July 29, 2019, 11:46am UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307 "2019-07-29T11:46:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![frost-xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frost-xyz](https://forums.unrealengine.com/u/frost-xyz)\
**Post date:** [July 29, 2019, 11:46am UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/1 "2019-07-29T11:46:05Z")

</div>

Is there any way to find assets not linked to a scene actor, in order to delete them from the library?

After updating a source file, and re-importing through Datasmith, assets with updated meshes — possibly split into parts, or re-created, still retain the original mesh item in the library. On large imports this leads to large amounts of duplicate and unnecessary geometry residing in the library folder.

---

<div class="post-metadata">

**Author:** ![pf\_breton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pf_breton/32/719217_2.png) [@pf\_breton](https://forums.unrealengine.com/u/pf_breton)\
**Post date:** [July 29, 2019, 2:25pm UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/2 "2019-07-29T14:25:48Z")

</div>

There is no purge command as in Revit or AutoCAD, but there is a way to find unused assets:

> **[2019-07-29\_1025](https://www.screencast.com/t/YXQHFPcpSbt)**
>
> Shared from Screencast.com

---

<div class="post-metadata">

**Author:** ![frost-xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frost-xyz](https://forums.unrealengine.com/u/frost-xyz)\
**Post date:** [July 29, 2019, 2:31pm UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/3 "2019-07-29T14:31:31Z")

</div>

Perfect, thank you.

---

<div class="post-metadata">

**Author:** ![pf\_breton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pf_breton/32/719217_2.png) [@pf\_breton](https://forums.unrealengine.com/u/pf_breton)\
**Post date:** [July 29, 2019, 3:21pm UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/4 "2019-07-29T15:21:59Z")

</div>

Mind that there is a bug where it correctly reports static mesh assets unused, but not materials and material instances

---

<div class="post-metadata">

**Author:** ![pf\_breton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pf_breton/32/719217_2.png) [@pf\_breton](https://forums.unrealengine.com/u/pf_breton)\
**Post date:** [July 31, 2019, 3:56pm UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/5 "2019-07-31T15:56:57Z")

</div>

We found that the filter wasn’t reporting more than one level deep with regards to hierarchy (ex: actor → Mesh → material instance → texture), hence it reporting partially correct information. This is now fixed internally and should make its way in 4.23 soon.

---

<div class="post-metadata">

**Author:** ![frost-xyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frost-xyz](https://forums.unrealengine.com/u/frost-xyz)\
**Post date:** [July 31, 2019, 4:11pm UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/6 "2019-07-31T16:11:22Z")

</div>

Great, thank you for addressing.

---

<div class="post-metadata">

**Author:** ![UE4\_Archviz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UE4\_Archviz](https://forums.unrealengine.com/u/UE4_Archviz)\
**Post date:** [September 1, 2019, 7:40am UTC](https://forums.unrealengine.com/t/removing-unnecessary-geometry-items-from-the-libray-after-updating-datasmith-file/129307/7 "2019-09-01T07:40:57Z")

</div>

> [@pf\_breton](#):
>
> There is no purge command as in Revit or AutoCAD, but there is a way to find unused assets:
> 
> [2019-07-29\_1025](https://www.screencast.com/t/YXQHFPcpSbt)

perfect solution . i use clean project plugin. works like charm. removes all unused assets and many more stuffs with two clicks. link - [Clean Project in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/slug/clean-project)
