Is there some script, addon or something that will take data from GDPR request and delete content, especially comments, one by one? redact had this capability, but it’s not working now

  • SpaceCadet2000@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    It can be done with shreddit: https://github.com/andrewbanchich/shreddit

    It has a built-in option to point it to your extracted GDPR data, and will edit and/or delete all the comments that are listed in there.

    Just configure it according to the instructions, and then let it run unattended for a while. It took about 15 hours to delete the 13000 comments on my 12 year old account.

    • Hogger85b@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Just to add a couple of bits for windows users that the readme there doesn’t cover

      If you have the exe

      Have you gone into Reddit and setup the “script client” and got the client Id and the secret (if not I will have to create some screenshots next time I am on desktop)

      In windows start bar type CMD to get a console window

      Then set some environment variables (they will only last this session) use the example in the git repo or here (the first four you will need to edit for you details from.reddit as per above) and the gdpr directory (if you put these in a file and save it as .bat you can run it or just type one line at a time into the CMD window

      Set SHREDDIT_USERNAME=your_username
      Set SHREDDIT_PASSWORD=SuperSecretPassword123
      Set SHREDDIT_CLIENT_ID=lk4j56lkj3lk4j5656
      Set SHREDDIT_CLIENT_SECRET=kl2kj3KJ345lkhRAWE
      Set SHREDDIT_DRY_RUN=false
      Set SHREDDIT_THING_TYPES=posts,comments
      Set SHREDDIT_BEFORE=2023-07-07T00:00:00Z
      Set SHREDDIT_EDIT_ONLY=false
      Set SHREDDIT_GDPR_EXPORT_DIR=c:\users[name]\Downloads\gdprunpack

      Then In the same window drag the exe in so the command line will say “c:…shreddit.exe” and press enter it will then run for 4s per comment so it will.take hours