# Landscape + Foliage bug: Manually deleted InstancedFoliageActors remain in memory, causes crashes whenever editing foliage.

**URL:** <https://forums.unrealengine.com/t/landscape-foliage-bug-manually-deleted-instancedfoliageactors-remain-in-memory-causes-crashes-whenever-editing-foliage/1204345>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, crash, bug-report, editor, question\
**Created:** [June 19, 2023, 4:30pm UTC](https://forums.unrealengine.com/t/landscape-foliage-bug-manually-deleted-instancedfoliageactors-remain-in-memory-causes-crashes-whenever-editing-foliage/1204345 "2023-06-19T16:30:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [June 19, 2023, 7:24pm UTC](https://forums.unrealengine.com/t/landscape-foliage-bug-manually-deleted-instancedfoliageactors-remain-in-memory-causes-crashes-whenever-editing-foliage/1204345/9 "2023-06-19T19:24:47Z")

</div>

> [@World Partition: Foliage Painting Crash (DataLayer) UE5.1](https://forums.unrealengine.com/t/world-partition-foliage-painting-crash-datalayer-ue5-1/755936/2):
>
> The Solution for me was to delete the DataLayer containging the foliage.

---

_[View the full topic](https://forums.unrealengine.com/t/landscape-foliage-bug-manually-deleted-instancedfoliageactors-remain-in-memory-causes-crashes-whenever-editing-foliage/1204345)._
