Regreddit

Crates.io Docs.rs Build Status

Regreddit is a command line tool that can delete everything (posts and comments for now) from your Reddit account.

Install

$ cargo install regreddit

Credentials

You need a credentials file .regreddit.toml in the current working directory for the commands to work. This is an example .regreddit.toml file with fake credentials:

yaml [credentials] client_id = "clientidstring" secret = "secretstring" username = "trsutyhardware" password = "myveryweakpassword"

To obtain the client ID and secret, follow the steps outlined in the official Reddit documentation. Select the "script app" type.

Usage

Delete everything

To delete all your comments and posts:

$ regreddit --yes

You can view the logs by:

$ regreddit --yes -vvv

Config

In the .regreddit.toml file, you can also specify a list of whitelisted subreddits. Posts and comments from them are not deleted. For example:

toml whitelist = ["rust"]

Why

Since USCIS checks foreign nationals for crimethink by requiring everyone to hand over social media accounts, it may be best to sanitize your social media starting with Reddit.