RIF will be shutting down on June 30, 2023, in response to Reddit Inc’s API changes and their hostile treatment of developers building on their platform.

  • FuzzyDunlop@slrpnk.net
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago

    It is a python script, you need the praw library. The client id’s are given in your profile after you create an app.

      
    import praw
    
    reddit = praw.Reddit(client_id='yourid',
    	client_secret='yoursecret',
    	password='your password',
    	user_agent='deletes my comments',
    	username='your username')
    
    redditor = reddit.redditor("your username")
    
    for comment in redditor.comments.top(limit=10000):
    	comment.edit("deleted")
    	comment.delete()
    
    

    You can edit and delete everything in the same pass but I prefer to overwrite my comments first and give time for the cache machines to register my new garbage before deleting with another pass.