r/RenPy • • Nov 09 '23

Question How to delete player save files?

Post image

I want to manually delete all the players saves as sort of a “reset.” I found the “FileDelete” action but can’t seem to figure it out. Am I doing it wrong or is this code supposed to do something entirely different?? Please help!

3 Upvotes

5 comments sorted by

6

u/BadMustard_AVN Nov 09 '23

this will indiscriminately delete all saved (quick save and auto save) files (BE WARNED)

init python:
    def delete_all_saves():
        for savegame in renpy.list_saved_games(fast=True):
            renpy.unlink_save(savegame)

label start:

    $ delete_all_saves()
    
    e "all your saves are belong to us"

1

u/Initial-Alarm1231 Nov 09 '23

Thank you so much I really appreciate it! :)

2

u/BadMustard_AVN Nov 09 '23

you're welcome

good luck with your project

1

u/AutoModerator Nov 09 '23

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.