Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Quickly Batch Delete Spam Comments in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Quickly Batch Delete Spam Comments in WordPress

Spam is a growing problem for all websites. Often WordPress sites receive a huge number of spam comments. Thankfully there are tools to combat comment spam in WordPress, like Akismet and CAPTCHA. A few months ago, Akismet went down for a few minutes, and we saw thousands of spam comments in our moderation queue. In this article, we will show you how to quickly batch delete spam comments in WordPress.

The quickest way to delete all spam comments is by clicking the Empty Spam button in WordPress. However when deleting hundreds or thousands of comments at once, this action may take too long, and it could also take down your web server.

batch delete spam comments

What we need is a nice way to handle the deletion process without causing too much burden on the server resources. Thanks to Pippin Williamson, there’s a better solution now.

All you need to do is install and activate the Batch Comment Spam Deletion plugin. There are no settings for the plugin to configure. Simply go to Comments » Spam and hit the Empty Spam button.

This plugin modifies the spam comment deletion process. Instead of deleting all spam comments at once, it processes them into batches and deletes 100 comments in a batch.

It will show you the deletion process as it goes on. Once it is done, you will be redirected to the comments page. This plugin reduces the load on your server while allowing you to swiftly clean your database from spam comments.

Batch processing the spam comment deletion

We hope this article helped you find a better way to delete spam comments from your WordPress site.

An effective strategy to fight spam comment bots is by using the honeypot technology, which tries to catch comment bots before they can submit any spam.

If you liked this article, then subscribe to our YouTube Channel for more WordPress video guides. You can also join us on Twitter and Google+.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. Jennifer Lalo says:

    This plug-in just saved me from manually deleting 2,000+ comments. Thank you very much — worked like a charm.

  2. Debbie Takara Shelor says:

    Thank you SO much for this help. I’ve been using Akismet, but didn’t have captcha going. I suddenly realized that I had 65,000 spam comments and whenever I tried to empty spam, it crashed everything. I’m running your recommended plugin right now! I had already tried deleting 20 comments at a time. Wow that would have taken forever. Thanks again!

  3. Chris Hazel says:

    I’ve been using WordPress for the last six months and had no problems running any feature or understanding it closely, but spam comments was really getting on my nerves. Initially I decided to ignore the piling comments, only to discover later that they amounted to a few thousands.
    That is when I searched the internet to find out how I could remove all
    the spam.

    What really scared me was the time it would take to delete so many comments – I then installed the CAPTCHA and was relieved to see the spam folder empty in just one click.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.