var latestSave = DataManager.lastAccessedSavefileId();
var randNum = function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var deleteSaveId = randNum(1,3);
while (deleteSaveId == latestSave) {
deleteSaveId = randNum(1,3);
}
StorageManager.remove(deleteSaveId);
_______________
That can be added as a script call and it will do this for you:
It will find out the last accessed save file id - which, in my testing, seems to be the last save file the player created, not necessarily the last save file that they loaded from - then it will get a random number between 1 and 3 (inclusive and specific to your case). This number will be the number that is deleted as long as it doesn't match the last accessed save file id. It will then delete that save file even if the file doesn't exist.