#reddit #cli #delete #command-line-tool #account #post #comments

app regreddit

A command line tool that deletes things from your Reddit account

3 unstable releases

0.2.0 Apr 8, 2020
0.1.1 Apr 6, 2020
0.1.0 Apr 6, 2020

#35 in #reddit

GPL-3.0-or-later

39KB
1K SLoC

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:

[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:

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.

Dependencies

~9–13MB
~260K SLoC