# delete game in slot + quit

**URL:** <https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785>\
**Category:** UEFN Validation\
**Tags:** unreal-engine, question\
**Created:** [June 4, 2024, 9:03am UTC](https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785 "2024-06-04T09:03:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmloffi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmloffi](https://forums.unrealengine.com/u/gmloffi)\
**Post date:** [June 4, 2024, 9:03am UTC](https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785/1 "2024-06-04T09:03:17Z")

</div>

delete game in slot is only working when I delete it and then quit game, on the contrary, if I don’t quit game it is not deleting the saved game, does anyone know why?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 4, 2024, 9:13am UTC](https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785/2 "2024-06-04T09:13:32Z")

</div>

It sounds like you’re still holding a copy of the save game in your code.

So, at some point you say

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/2/852e50e2fa3a6c7a96e7cbc77d5c3eda1945a223.png)

then later also say

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/e/c1e9babce1d23a86de1ea7c91174b4d3a64685d2.png)

---

<div class="post-metadata">

**Author:** ![gmloffi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmloffi](https://forums.unrealengine.com/u/gmloffi)\
**Post date:** [June 5, 2024, 4:24am UTC](https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785/3 "2024-06-05T04:24:30Z")

</div>

In my game instance, there was a function that created and stored (image below). I delete the slot in a level that only has the main menu. In my test, after deleting the slot, the prints showed the variables reset after the deletion, but after entering the game level “galaxy,” it reverted to the save that had been deleted. Now that I’ve set the “level” variable in the game instance to empty, the problem is resolved. Thank you very much for your hel

 ![gameinst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/d/d4d0508f541bd6ee35da45523d287990246ba62f.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 5, 2024, 4:24am UTC](https://forums.unrealengine.com/t/delete-game-in-slot-quit/1888785/4 "2024-07-05T04:24:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
