This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Batch Comment Spam Deletion


Modifies the Empty Spam action in WordPress to process the spam deletion in batches, allowing you to delete thousands or even hundreds of thousands of spam comments at once without killing your server.

Have you found a bug or have a suggestion or improvement you’d like to submit? This plugin is available on Github and pull requests are welcome!


  1. Activate the plugin
  2. Go to Comments > Spam
  3. Use the “Empty Spam” button to clear out all spam comments


Can I change the number of comments deleted per batch?

Yes, there are two ways to do it.

  1. You can modify the number via a filter, like this:

    function pw_bcsd_per_batch( $per_batch ) {

    $per_batch = 50;
    return $per_batch;

    add_filter( ‘pw_bcpd_comments_per_batch’, ‘pw_bcsd_per_batch’ );

  2. You can modify it by adding a constant to your wp-config.php file:

    define( ‘PW_BCPD_PER_BATCH’, 50 );

Contributors & Developers

“Batch Comment Spam Deletion” is open source software. The following people have contributed to this plugin.




  • Fix: missing closing tag


  • Fix: Fatal error during batch processing


  • New: added the ability to change the per-batch number via the PW_BCPD_PER_BATCH constant


  • Fix: Undefined index error


  • Fix: The Empty Trash button was accidentally removed from the Trash page


  • First release!