# Attempting to remove several instanced static meshes on box trace, some remain on final hit trace.

**URL:** <https://forums.unrealengine.com/t/attempting-to-remove-several-instanced-static-meshes-on-box-trace-some-remain-on-final-hit-trace/2726085>\
**Category:** Blueprint\
**Tags:** arrays, unreal-engine, Instanced-Mesh, Array, question, Blueprint\
**Created:** [June 3, 2026, 4:07pm UTC](https://forums.unrealengine.com/t/attempting-to-remove-several-instanced-static-meshes-on-box-trace-some-remain-on-final-hit-trace/2726085 "2026-06-03T16:07:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Flyin\_Guy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flyin\_Guy](https://forums.unrealengine.com/u/Flyin_Guy)\
**Post date:** [June 3, 2026, 5:02pm UTC](https://forums.unrealengine.com/t/attempting-to-remove-several-instanced-static-meshes-on-box-trace-some-remain-on-final-hit-trace/2726085/2 "2026-06-03T17:02:13Z")

</div>

I managed to solve this with help from another thread linked bellow

> [@Instanced Static Mesh, Removing Instance Issue](https://forums.unrealengine.com/t/instanced-static-mesh-removing-instance-issue/66187/12):
>
> If I may chime in, I too had issues removing the correct instances but this relatively simple setup solved it for me: Explanation: The Int Array stores the indexes we wish to remove. Since removing a lower number will make the instances go down one position, we remove them from highest to lowest. We store the values that Max Of Int Array returns so we don’t have to run that function over and over (well, twice, instead of thrice). After removing the returned Max Value, …

---

_[View the full topic](https://forums.unrealengine.com/t/attempting-to-remove-several-instanced-static-meshes-on-box-trace-some-remain-on-final-hit-trace/2726085)._
