# How to clear an inventory?

**URL:** <https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [April 27, 2017, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852 "2017-04-27T12:44:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [April 27, 2017, 12:44pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/1 "2017-04-27T12:44:19Z")

</div>

Hello guys!

So I have my Inventory but dont find how to clear his content… Any idea?

Thought about a loop on the InventoryItems from this Inventory but dont find anything to destroy the current item…

Thx 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [April 27, 2017, 12:56pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/2 "2017-04-27T12:56:31Z")

</div>

Seems finally found something with the “RemoveFromSlot”. Will take a try.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [April 27, 2017, 1:22pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/3 "2017-04-27T13:22:31Z")

</div>

No, not working this way ☹ Any other idea guys? 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [April 27, 2017, 1:27pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/4 "2017-04-27T13:27:48Z")

</div>

Okm stupid I’m.

InventoryItems -\> Clear

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4c8d46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4c8d46](https://forums.unrealengine.com/u/anonymous_user_3b4c8d46)\
**Post date:** [April 27, 2017, 1:48pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/5 "2017-04-27T13:48:11Z")

</div>

Most likely the items are stored within an array, and then you have both “Remove Item” and “Remove Index” which you can use. If you want to remove everything you can either use “Clear” or iterate through the array with a loop and use “Remove Index”.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:19pm UTC](https://forums.unrealengine.com/t/how-to-clear-an-inventory/90852/6 "2022-03-09T21:19:57Z")

</div>


