Title: Batch Comment Spam Deletion
Author: Syed Balkhi
Published: <strong>June 2, 2014</strong>
Last modified: October 27, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/batch-comment-spam-deletion.svg)

# Batch Comment Spam Deletion

 By [Syed Balkhi](https://profiles.wordpress.org/smub/)

[Download](https://downloads.wordpress.org/plugin/batch-comment-spam-deletion.zip)

 * [Details](https://test.wordpress.org/plugins/batch-comment-spam-deletion/#description)
 * [Reviews](https://test.wordpress.org/plugins/batch-comment-spam-deletion/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/batch-comment-spam-deletion/#installation)
 * [Development](https://test.wordpress.org/plugins/batch-comment-spam-deletion/#developers)

 [Support](https://wordpress.org/support/plugin/batch-comment-spam-deletion/)

## Description

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](https://github.com/pippinsplugins/batch-comment-spam-deletion)
and pull requests are welcome!

## Installation

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

## FAQ

  Installation Instructions

 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:
 2. <?php
     function pw_bcsd_per_batch( $per_batch ) {
 3.     ```
        $per_batch = 50;
    
        return $per_batch;
        ```
    
 4. }
     add_filter( ‘pw_bcpd_comments_per_batch’, ‘pw_bcsd_per_batch’ );
 5. You can modify it by adding a constant to your `wp-config.php` file:
 6. define( ‘PW_BCPD_PER_BATCH’, 50 );

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ Syed Balkhi ](https://profiles.wordpress.org/smub/)
 *   [ Pippin Williamson ](https://profiles.wordpress.org/mordauk/)

[Translate “Batch Comment Spam Deletion” into your language.](https://translate.wordpress.org/projects/wp-plugins/batch-comment-spam-deletion)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/batch-comment-spam-deletion/),
check out the [SVN repository](https://plugins.svn.wordpress.org/batch-comment-spam-deletion/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/batch-comment-spam-deletion/)
by [RSS](https://plugins.trac.wordpress.org/log/batch-comment-spam-deletion/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.6

 * Fix: Delete Spam button displaying improperly
 * Tested with WordPress 4.8 and later

#### 1.0.5

 * Fix: missing closing tag

#### 1.0.4

 * Fix: Fatal error during batch processing

#### 1.0.3

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

#### 1.0.2

 * Fix: Undefined index error

#### 1.0.1

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

#### 1.0

 * First release!

## Meta

 *  Version **1.0.6**
 *  Last updated **9 years ago**
 *  Active installations **1,000+**
 *  WordPress version ** 3.6 or higher **
 *  Tested up to **4.9.29**
 *  Language
 * [English (US)](https://wordpress.org/plugins/batch-comment-spam-deletion/)
 * Tags
 * [comment](https://test.wordpress.org/plugins/tags/comment/)[comments](https://test.wordpress.org/plugins/tags/comments/)
   [spam](https://test.wordpress.org/plugins/tags/spam/)
 *  [Advanced View](https://test.wordpress.org/plugins/batch-comment-spam-deletion/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/batch-comment-spam-deletion/reviews/)

## Contributors

 *   [ Syed Balkhi ](https://profiles.wordpress.org/smub/)
 *   [ Pippin Williamson ](https://profiles.wordpress.org/mordauk/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/batch-comment-spam-deletion/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://pippinsplugins.com/support-the-site)