Runtime Save Deletion

Deleting saves with code.

Deleting saves can be a dangerous task, as it results in the player losing their progress. Make sure saves are being deleted only when necessary (usually only when the player manually deletes them).

Deletion

As long as you have a reference to a SaveFile, you can delete it from the player's system whenever you'd like.

saveFile.DeleteFile();

Empty File

Alternatively, you have the option of completely removing all data while keeping the file in the user's system.

saveFile.EmptyFile();

Last updated