Skip to content
Connor Edwards edited this page Aug 10, 2022 · 2 revisions

Command Usage

Running discord-delete without any flags will practically try to delete all messages it can. It is highly recommended to run discord-delete --help for an up-to-date list of possible flags and arguments.

At the time of writing the following is the output from said command:

Usage:
  discord-delete [flags]

Flags:
  -d, --dry-run             perform dry run without deleting anything
  -h, --help                help for partial
  -a, --max-age-days uint   maximum age in days of messages to delete
  -i, --min-age-days uint   minimum age in days of messages to delete
  -s, --skip strings        skip message deletion for specified channels/guilds

Global Flags:
  -v, --verbose   enable verbose logging

Examples

Delete all messages more than a week old

discord-delete --min-age-days 7

Delete all messages between a week and two weeks old

discord-delete --min-age-days 7 --max-age-days 14

Delete all message older than a year, but keep one channel's messages

discord-delete --min-age-days 365 --skip 1122334455

Running dry-run mode so no message is deleted

discord-delete --dry-run --min-age-days 7