{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Delete Game In Slot in Unreal Engine 5 C++UE Docs

The Delete Game In Slot node maps to UGameplayStatics::DeleteGameInSlot(TEXT("Slot1"), 0), which deletes the save file for the given slot name and user index from disk.

Blueprint node & C++ equivalent

C++
UGameplayStatics::DeleteGameInSlot(TEXT("Slot1"), 0);

What does the Delete Game In Slot node do?

Delete Game In Slot permanently removes the save file associated with a slot name and user index. After it runs, DoesSaveGameExist for that slot returns false and LoadGameFromSlot returns nullptr.

The function returns a bool indicating whether the deletion succeeded.

DeleteGameInSlot C++ example

Call UGameplayStatics::DeleteGameInSlot(TEXT("Slot1"), 0);. The arguments are the same slot name and user index you used when saving, so the engine targets the correct file.

If the slot does not exist, the call simply does nothing meaningful and reports failure rather than throwing.

When to use it in C++

Use this for a Delete Save or Erase Slot menu action, or to clean up temporary autosaves. There is no undo, so confirm intent in the UI before calling it on a player's progress.

Frequently asked questions

What is DeleteGameInSlot in UE5 C++?+

UGameplayStatics::DeleteGameInSlot deletes the save file for the given slot name and user index, returning true on success.

Can DeleteGameInSlot be undone?+

No. The save file is removed permanently, so confirm the player's intent before calling it.

What happens if I delete a slot that does not exist?+

Nothing is removed and the function reports failure; it does not crash or throw.

Related Save & Load nodes

View all Save & Load nodes →