Bulk-delete hundreds of spam comments from a YouTube channel in one session instead of one by one
Scan your entire channel for comments from a specific spammer account and remove them all
Use moderator mode with a dummy account to flag suspicious comments for review without granting full access
Restore accidentally deleted comments using the tool's built-in recovery mode
Requires creating a Google Cloud project and enabling the YouTube Data API to get OAuth credentials before first run.
YouTube Spammer Purge is a Python tool for YouTube channel owners who want to bulk-find and delete spam or scam comments. It was built in response to a wave of fake impersonator accounts that flooded YouTube comment sections with scam replies, making manual cleanup impractical when dozens or hundreds of spam accounts are involved across a channel's videos. The tool connects to your YouTube channel through the official YouTube Data API, which requires setting up your own Google Cloud project and API credentials. Because it runs locally on your machine using credentials you created yourself, the author has no access to your channel data. The README explains this in detail and also describes a moderator mode for users who do not want to grant the app full permissions: you create a dummy Google account, make it a moderator on your channel, and run the app through that account, which limits what the app can do to marking comments for review rather than outright deleting them. There are 15 filtering methods available. The recommended option is an Auto-Smart mode that automatically detects common spammer patterns. Other options let you filter by a specific channel ID, scan usernames or comment text for certain characters or strings, use a custom pattern written in regex, or flag comments containing unusual non-English characters. Scanning can target a single video, your most recent videos, or your entire channel's comment history. Once a scan is complete, the tool shows a list of matched comments along with samples so you can spot false positives before anything is deleted. You can exclude specific accounts, then confirm to delete or report the rest in bulk. There is also a recovery mode to restore previously deleted comments if something was removed by mistake. The tool runs from the command line and is available as a pre-built Windows executable for users who do not want to run Python directly. Linux and macOS users have separate setup instructions in the project wiki.
← thiojoe on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.