🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

delete discord message in bulk

by @ghjbku

Use when user requests deleting multiple Discord messages or channel cleanup. Triggers on phrases like: - "delete [X] messages" - "purge [X] messages" - "cle...

Versionv1.0.5
πŸ’‘ Examples

1. Configure Bot Token

Create token.json in the workspace directory:

{
  "token": "tokenhere"
}

OR set environment variable:

$env:DISCORD_TOKEN = "YOUR_BOT_TOKEN_HERE"

2. ask for confirmation

- run python scripts/discord-purge-tool.py purge --channel-id to call dry-run mode - ask from the user if they really want to delete x amount of messages in the current channel

3. Run the Tool

From this skill's directory:

# Delete last 5 messages
python scripts/discord-purge-tool.py --delete --channel-id 
OR
python scripts/discord-purge-tool.py -d --channel-id 

Delete custom count

python scripts/discord-purge-tool.py purge 25 --delete --channel-id OR python scripts/discord-purge-tool.py purge 25 -d --channel-id

Larger purge (handles batches automatically)

python scripts/discord-purge-tool.py purge 200 --delete --channel-id OR python scripts/discord-purge-tool.py purge 200 -d --channel-id

βš™οΈ Configuration

token.json

{
  "token": "YOUR_BOT_TOKEN_HERE"
}

Or environment variable:

$env:DISCORD_TOKEN = "YOUR_BOT_TOKEN_HERE"

πŸ“‹ Tips & Best Practices

  • Script path is relative: scripts/discord-purge-tool.py
  • View on ClawHub
    TERMINAL
    clawhub install discord-bulk-message-delete

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’