shreddit
is a tool to delete Reddit comments and posts.
Deactivating a Reddit account will not delete comments or submissions - it will only disassociate your account from them.
Shreddit overwrites your comments with random text before deleting them to ensure that the originals are (probably) not preserved.
If you don't want your post history to follow you around forever, you can use shreddit
on a cron job.
If you're deactivating your account, you can run shreddit
first to ensure your posts are deleted.
Because the original Shreddit project was abandoned in 2017, I decided to rewrite it in Rust.
This brings several benefits:
shreddit.yml
and praw.ini
config files, all configuration can be done through CLI commands
with environment variables as default fallbacks.Download the binary from the GitHub Releases page.
cargo install shreddit
``` Overwrite and delete your Reddit account history.
Usage: shreddit [OPTIONS] --username
Options:
-u, --username https://www.reddit.com/prefs/apps/
, click create another app...
and fill out the form. Select the script
type, and set redirect uri
as http://localhost:8080
[env: SHREDDITshreddit
will use the GDPR export folder instead of Reddit's APIs for discovering your data [env: SHREDDITGDPREXPORTDIR=/home/you/Downloads/exportyourusername_20230101]
-h, --help
Print help
-V, --version
Print version
```
You can choose to pass in configuration settings via CLI arguments like:
shreddit --username YouRedditUsername --password YourSuperSecretPassword123 --client-id k1jh2342k3j --client-secret 2345JHLJ_34kjhkj3h453453
or by setting them as environment variables (e.g. SHREDDIT_CLIENT_SECRET
) and simply running shreddit
.
On startup, shreddit
looks for a shreddit.env
file in the current directory and sets any variables declared there.
However, this is purely optional.
You can use --dry-run
or SHREDDIT_DRY_RUN=true
to see what it would do without it actually doing anything.
shreddit
with the --gdpr-export-dir
flag set to the path of the directory it was extracted to.These are the other features Python Shreddit had.
I'll be adding these as I go along. PRs are welcome!
Other feature ideas are welcome.